On 05/10/2011 03:44 AM, Amos Jeffries wrote:

Maybe we can use
if (!Ip::EnableIpv6 || Ip::EnableIpv6&IPV6_SPECIAL_SPLITSTACK &&
!cfg().ipv6))

No need. There are four stacks:
IPv4-only
Split (Classical Dual)
Hybrid (Extended Dual)
IPv6-only

When !Ip::EnableIpv6 the default anyAddr is made IPv4-only. For the

Looking the ip/Address.cc code I think this is not true. The default localhost address is IPv4-only but for the anyAddr the family (AF_INET or AF_INET6) is unspecified.



others we know IPv6 has at least a working stack and default to v6.
Outside of Ip::Address we only need to care about the Split case where
sockets are IP family sensitive.

Amos


Reply via email to