nagesh | 14 Aug 2012 17:12
Favicon

Doubt regarding the behavior of bind( ) as per RFC 6458

Hi,

                I have a doubt regarding what should be the behavior of the SCTP stack for bind( ) operation as explained in the RFC 6458 section 4.1.2

 

                What RFC mentions is, if the IP address part of addr is specified as wildcard (IN6ADDR_ANY_INIT), operating system will associate the endpoint with an optimal address set of the available interfaces.

                Can anybody provide more insight on “optimal address set”, since this point is not clear in the RFC.

 

Thanks and Regards,

Nagesh.

 

4.1.2.  bind()

…….

If the IP address part of addr is specified as a wildcard (INADDR_ANY

   for an IPv4 address, or as IN6ADDR_ANY_INIT or in6addr_any for an

   IPv6 address), the operating system will associate the endpoint with

   an optimal address set of the available interfaces.  If the IPv4

   sin_port or IPv6 sin6_port is set to 0, the operating system will

   choose an ephemeral port for the endpoint.


Gmane