This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9700] a means to sort addrinfo list
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Jan 2009 20:21:25 -0000
- Subject: [Bug libc/9700] a means to sort addrinfo list
- References: <20090102142818.9700.stlman@poczta.fm>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2009-01-03 20:21 -------
And exactly how do you want to use this functionality? You'd have to modify and
rebuild every single application on your system. The special sorting function
would be specific to you and nobody else.
If you try to argue that you'd somehow wrap the getaddrinfo call and make the
passing of the new flag and function configurable, this doesn't hold any water
either. You can just as well intercept the getaddrinfo call and re-sort the
returned results before handing them to the application. This can be done with
LD_PRELOAD, if necessary, or just by defining a getaddrinfo function in your code.
If you try to argue that the new sorting rules are generic enough to be part of
the system then by all means, go ahead, talk to the IETF group which wrote RFC
3484 (which is long overdue for revision) and add the rules. Until then they
are not generic enough.
In short, such a flag makes no sense at all. Either the new rules are to be
adopted everywhere or you can add your own local hack already without further
complications in the system code.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=9700
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.