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/19582] Deprecate RES_USE_INET6


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.

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