most buggy function in glibc 8)

Philip Blundell Philip.Blundell@pobox.com
Tue Jan 11 12:05:00 GMT 2000


>> >now with nscd running:
>> Please try without nscd.
>With nscd works - without nscd doesn't work.

If by `works' you mean "automatically maps IPv4 addresses to IPv6 ones", you 
are mistaken.  I think that this behaviour is a bug in nscd; the resolver 
should not perform this translation automatically.  If you really want 
v4-mapped addresses you should do this yourself, but in almost all 
applications there is no reason to.

Really, v4-mapped addresses exist only as a convenience for servers, so you 
can listen() on an IPv6 socket and deal sensibly with connections from IPv4 
hosts.  If your machine is dual-stacked, the right way to handle IPv4 
addresses is to go on using AF_INET as before.  Note that if you use 
getaddrinfo() and don't specifically request AF_INET6, the right things will 
pretty much happen automatically.

(Apologies if I've misunderstood what you are referring to.)

p.




More information about the Libc-alpha mailing list