This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #9 from Simon Arlott <bugzilla.sourceware.simon at arlott dot org> ---
> The only doubt is whether to generate both when the first covers both;
> I'm not when dropping the latter is safe, so I'm leaving that unrelated
> decision out for now.

It's not safe because the global sysctl net.ipv6.bindv6only could be set to 1
at any time, or the application could use IPV6_V6ONLY=1 on the socket
(expecting to receive an IPv4 address too).

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]