[Bug network/19582] Deprecate RES_USE_INET6
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Oct 5 09:46:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=19582
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Florian Weimer from comment #2)
> But this code is essentially dead. gethostbyname calls are mapped to the
> gethostbyname2 service module functions internally, and gethostbyname2 (via
> gethostbyname3) always use AF_INET if AF_INET is requested, ignoring
> RES_USE_INET6.
It turns out this mapping happens inside nss/getent, not in libc.so itself.
gethostbyname is handed to the underlying NSS module as gethostbyname (at least
as long as nscd is not involved).
Furthermore, the switch from struct sockaddr_in to struct sockaddr_in6 appears
to mirror what the original RFC required.
This removes some of the reasons for deprecation, but I still thing gently
pushing applications towards getaddrinfo is a good idea.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list