Sctp and getaddrinfo

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


On Tue, 1 Oct 2019 21:12:47 -0500
Brian Wood <woodbrian77 at gmail.com> 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:
> https://www.ibm.com/developerworks/library/l-sctp/index.html
> 
> 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.
> https://github.com/Ebenezer-group/onwards
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"


---   ---
Eduardo Morras <emorrasg at yahoo.es>


More information about the freebsd-questions mailing list