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 libc/3847] Request for getaddrinfo to search IPv4 before IPv6 when family is PF_UNSPEC


------- Additional Comments From nr at eecs dot harvard dot edu  2007-01-09 06:02 -------
Subject: Re:  Request for getaddrinfo to search IPv4 before IPv6 when family is PF_UNSPEC 

 > ------- Additional Comments From drepper at redhat dot com  2007-01-09
 > 01:25 ------- Not only do you not understand the code, you have not even
 > looked at the latest version of the file.

Thank you for your kind remarks.  I apologize for filing a request
against the wrong file.  I examined the latest version of the file
which is approved by the Debian people, because using the Debian libc6
is the only way for me to guarantee compatibility with hundreds of the
Debian packages that I use.

I'm puzzled by your thought that I don't understand the code.
It sure looks to me as if the while loop is trying each element
of the gaih array that is compatible with hints->ai_family.
And I did verify with gdb that this is the call that causes my machine
to sit and time out for 5 seconds, twice.  

Having downloaded version 2.5 and looked there, I guarantee I don't
understand that code.  But I've made a pass through it, and it's
become clear to me that I don't understand the specification of
getaddrinfo(3).  Neither the man page nor RFC 2553 have enlightened me
on this point, but perhaps you will be kind enough to do so: is
getaddrinfo() required to return a list containing *every* possible
protocol, family, and socket type available for the requested
host/service pair?  And if so, is there any way for me to configure
glibc version 2.5 to tell it that I wish PF_INET6 to be considered
completely and permanently unavailable?  If not, that's obviously the
request I should file.


Norman Ramsey

 >            What    |Removed                     |Added
 > ----------------------------------------------------------------------------
 >              Status|NEW                         |RESOLVED
 >          Resolution|                            |INVALID
 > 
 > http://sourceware.org/bugzilla/show_bug.cgi?id=3847


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3847

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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