[Bug network/9981] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 (IPv4-only) and :: (IPv6+IPv4) in this order

psimerda at redhat dot com sourceware-bugzilla@sourceware.org
Sun Jun 1 09:26:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=9981

--- Comment #12 from Pavel Šimerda <psimerda at redhat dot com> ---
(In reply to Simon Arlott from comment #11)
> There is nothing getaddrinfo() can do about this. It would have been better
> to not have the bindv6only sysctl and require an explicit IPV6_V6ONLY=0 on
> the socket, but it's too late for that now.

Then I would say we should assume bindv6only won't change between the call to
getaddrinfo() and bind(). I know it's not 100% perfect but most systems don't
change the setting at runtime at all. It certainly better than the current
situation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list