This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4599] New: loopback addresses are not ignored when the AI_ADDRCONFIG flag is set
- From: "davi at haxent dot com dot br" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jun 2007 16:43:37 -0000
- Subject: [Bug libc/4599] New: loopback addresses are not ignored when the AI_ADDRCONFIG flag is set
- Reply-to: sourceware-bugzilla at sourceware dot org
-- 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.
For example, when using the DNS, a query for AAAA records should
occur only if the node has at least one IPv6 address configured
(other than IPv6 loopback) and a query for A records should occur
only if the node has at least one IPv4 address configured (other
than the IPv4 loopback).
-- end
The problem is that the getaddrinfo and __check_pf (seen_ipv4 or seen_ipv6)
functions don't take into account the fact that the loopback addresses must
be ignored when AI_ADDRCONFIG is set.
For example, a call to getaddrinfo, link this one:
getaddrinfo("::1", NULL, {.family=AF_INET6, .hints=0|AI_ADDRCONFIG})
must fail on machines with no public ipv6 addresses.
--
Summary: loopback addresses are not ignored when the
AI_ADDRCONFIG flag is set
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: davi at haxent dot com dot br
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4599
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.