Sctp and getaddrinfo

Eduardo Morras emorrasg at
Wed Oct 2 08:31:28 UTC 2019

On Tue, 1 Oct 2019 21:12:47 -0500
Brian Wood <woodbrian77 at> wrote:

> Hi.  I've been trying to use sctp and gettaddrinfo (SOCK_STREAM
> and IPPROTO_SCTP) but have had some problems.  My server
> starts with those, but the client gets a "non-recoverable failure
> in name resolution," when connecting.
> I notice this example isn't using getaddrinfo:
> Do you ever use sctp and getaddrinfo?  I'm using Trident/
> FreeBSD 12.0 on amd64.  Thanks in advance.

Yes, I use it. Some questions:

a) Can you post your getaddreinfo call? 

b) Do you use hint? Set it to null. 

c) Are you using more than one network interface? getaddrinfo (afaik)
don't support it. After using getaddrinfo you can add more interfaces
to the association

d) Does your dns work? Are client and server in the same machine?

> Brian
> Ebenezer Enterprises - Enjoying programming again.
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at"

---   ---
Eduardo Morras <emorrasg at>

More information about the freebsd-questions mailing list