This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9700] New: a means to sort addrinfo list
- From: "stlman at poczta dot fm" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jan 2009 14:28:19 -0000
- Subject: [Bug libc/9700] New: a means to sort addrinfo list
- Reply-to: sourceware-bugzilla at sourceware dot org
Although it is not described by any standard I know there should be a way to
sort user provided list of addrinfo structures like getaddrinfo() does.
It may be available either via a separate function sortaddrinfo() or via
getaddrinfo() with AI_SORT flag.
The former function would take the following arguments:
sortaddrinfo(struct addrinfo* list);
and it could be a short wrapper arount rfc3484_sort just to convert the list to
array and back again.
The latter one could be called like this
getaddrinfo(NULL, NULL, hints, list);
with AI_SORT set in hints.ai_flags and list being a linked list of addrinfo
structures.
There are some situations where such a facility would be very handy. For example
XEP-0065 provides a list of numeric addresses which should be sorted according
to RFC3484.
--
Summary: a means to sort addrinfo list
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: stlman at poczta dot fm
CC: glibc-bugs at sources dot redhat dot com
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.