Binding SCTP sockets to the IPv6 lopback address

Bruce Cran bruce at cran.org.uk
Wed Oct 15 05:47:13 PDT 2008


I've been writing some basic SCTP socket code and have found that SCTP 
doesn't bind to the loopback IPv6 address - it binds to all the other 
addresses, including the external IPv6, link-local and IPv4 loopback 
addresses.  Is there something about the way SCTP works that means it 
doesn't work over IPv6 loopback?

The code I'm running calls getaddrinfo with the hints to set AF_UNSPEC, 
SOCK_STREAM, AI_PASSIVE and then it calls bind with the protocol set to 
IPPROTO_SCTP.

-- 
Bruce Cran


More information about the freebsd-questions mailing list