This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
- From: "psimerda at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 03 Aug 2012 16:12:06 +0000
- Subject: [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
- Auto-submitted: auto-generated
- References: <bug-14415-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
--- Comment #3 from Pavel Åimerda <psimerda at redhat dot com> 2012-08-03 16:12:06 UTC ---
> My understanding is that because the default uses AF_UNSPEC that the caller
> accepts *any* address family thus AI_V4MAPPED is not useless because AF_UNSPEC
> can be treated as anything including AF_INET6.
This is not the case. My tests say that AF_UNSPEC with AI_V4MAPPED returns
regular IPv4 addresses, regular IPv6 addresses but *no* IPv4-mapped IPv6
addresses. So it actually behaves exactly like AF_UNSPEC without AI_V4MAPPED.
> Does that clarify why we would set AI_V4MAPPED in the default?
Unfortunately not.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.