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/5507] gai() sorting is broken


------- Additional Comments From aurelien at aurel32 dot net  2008-01-13 12:48 -------
(In reply to comment #6)
> (In reply to comment #5)
> > Patch to fix the bug
> 
> Nonsense.  This patch is completely, utterly broken and shows you don't
> understand a bit of the code.  You move the catch-all entry to the front.
> 
> And of course will the order depend on the addresses of the local machine. 
> That's the whole point of the sorting.
> 
> I see nothing wrong.
> 

It works for you because you are using a native IPv6 address and not a 6to4 
address which has its own label in /etc/gai.conf.

130.230.54.99   DGRAM  ftp.fi.debian.org
130.230.54.99   RAW    
2001:708:310:54::99 STREAM 
2001:708:310:54::99 DGRAM  
2001:708:310:54::99 RAW    
130.230.54.99   STREAM 

I don't really understand why the IPv4/IPv6 order is different for UDP and TCP. 
It should be all IPv4 first or all IPv6 first, but not mixed. That is a bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


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

------- 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]