This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10083] IPV6 getaddrinfo and AI_ADDRCONFIG
- From: "pasky at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Apr 2009 20:02:35 -0000
- Subject: [Bug libc/10083] IPV6 getaddrinfo and AI_ADDRCONFIG
- References: <20090419085937.10083.spam@messir.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pasky at suse dot cz 2009-04-21 20:02 -------
Then this is precisely the expected behaviour! RFC 3493 states:
If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
returned only if an IPv4 address is configured on the local system,
and IPv6 addresses shall be returned only if an IPv6 address is
configured on the local system. The loopback address is not
considered for this case as valid as a configured address.
The idea is that AI_ADDRCONFIG shall be used if you want to use the given
address family only when the user has explicit connectivity with that family.
glibc was actually buggy before and did what you want, but this got fixed, see
bug 4599.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=10083
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.