From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 813 invoked by alias); 9 Jan 2007 06:02:22 -0000 Received: (qmail 793 invoked by alias); 9 Jan 2007 06:02:13 -0000 Date: Tue, 09 Jan 2007 06:02:00 -0000 Message-ID: <20070109060213.792.qmail@sourceware.org> From: "nr at eecs dot harvard dot edu" To: glibc-bugs@sources.redhat.com In-Reply-To: <20070109010946.3847.nr@eecs.harvard.edu> References: <20070109010946.3847.nr@eecs.harvard.edu> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/3847] Request for getaddrinfo to search IPv4 before IPv6 when family is PF_UNSPEC X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00016.txt.bz2 ------- 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.