* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
@ 2012-07-31 18:44 ` tore at fud dot no
2012-08-03 4:04 ` carlos_odonell at mentor dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tore at fud dot no @ 2012-07-31 18:44 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
Tore Anderson <tore at fud dot no> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tore at fud dot no
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
2012-07-31 18:44 ` [Bug network/14415] " tore at fud dot no
@ 2012-08-03 4:04 ` carlos_odonell at mentor dot com
2012-08-03 4:06 ` carlos_odonell at mentor dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos_odonell at mentor dot com @ 2012-08-03 4:04 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
Carlos O'Donell <carlos_odonell at mentor dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |carlos_odonell at mentor
| |dot com
--- Comment #1 from Carlos O'Donell <carlos_odonell at mentor dot com> 2012-08-03 04:03:51 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.
Does that clarify why we would set AI_V4MAPPED in the default?
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
2012-07-31 18:44 ` [Bug network/14415] " tore at fud dot no
2012-08-03 4:04 ` carlos_odonell at mentor dot com
@ 2012-08-03 4:06 ` carlos_odonell at mentor dot com
2012-08-03 16:12 ` psimerda at redhat dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos_odonell at mentor dot com @ 2012-08-03 4:06 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
--- Comment #2 from Carlos O'Donell <carlos_odonell at mentor dot com> 2012-08-03 04:06:03 UTC ---
Please note that the man pages are maintained by man-pages project here:
http://www.kernel.org/doc/man-pages/
Would a clarification on the man page about the uses of AF_UNSPEC help?
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (2 preceding siblings ...)
2012-08-03 4:06 ` carlos_odonell at mentor dot com
@ 2012-08-03 16:12 ` psimerda at redhat dot com
2012-09-22 15:45 ` psimerda at redhat dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: psimerda at redhat dot com @ 2012-08-03 16:12 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (3 preceding siblings ...)
2012-08-03 16:12 ` psimerda at redhat dot com
@ 2012-09-22 15:45 ` psimerda at redhat dot com
2012-12-04 0:00 ` carlos at systemhalted dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: psimerda at redhat dot com @ 2012-09-22 15:45 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
--- Comment #4 from Pavel Šimerda <psimerda at redhat dot com> 2012-09-22 15:45:24 UTC ---
Created attachment 6649
--> http://sourceware.org/bugzilla/attachment.cgi?id=6649
patch to remove useless AI_V4MAPPED from default with AF_UNSPEC
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (4 preceding siblings ...)
2012-09-22 15:45 ` psimerda at redhat dot com
@ 2012-12-04 0:00 ` carlos at systemhalted dot org
2013-01-03 14:54 ` psimerda at redhat dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos at systemhalted dot org @ 2012-12-04 0:00 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
Carlos O'Donell <carlos at systemhalted dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|carlos_odonell at mentor |carlos at systemhalted dot
|dot com |org
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (5 preceding siblings ...)
2012-12-04 0:00 ` carlos at systemhalted dot org
@ 2013-01-03 14:54 ` psimerda at redhat dot com
2013-02-24 22:12 ` psimerda at redhat dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: psimerda at redhat dot com @ 2013-01-03 14:54 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
--- Comment #5 from Pavel Šimerda <psimerda at redhat dot com> 2013-01-03 14:53:57 UTC ---
Created attachment 6794
--> http://sourceware.org/bugzilla/attachment.cgi?id=6794
getaddrinfo: use zero ai_flags by default
According to POSIX1-2008, AI_V4MAPPED flag shall be ignored unless
ai_family
equals AF_INET6. In the default hints, ai_family is AF_UNSPEC. Therefore
AI_V4MAPPED is redundant.
AI_ADDRCONFIG can potentially be beneficial to applications that use
getaddrinfo() results to immediately call connect(), sendto() and
similar functions to avoid querying redundant DNS records according
to the current address configuration.
Those applications will also need to specify ai_socktype and/or
ai_protocol and therefore will not use hints=NULL. As AI_DEFAULT is not
a part of the public API, such applications will not be able to use the
default flags at all.
Please note that POSIX1-2008 doesn't define any default flags at all.
Resolves: #14415, #14965
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (6 preceding siblings ...)
2013-01-03 14:54 ` psimerda at redhat dot com
@ 2013-02-24 22:12 ` psimerda at redhat dot com
2013-10-20 20:54 ` neleai at seznam dot cz
2014-06-17 18:51 ` fweimer at redhat dot com
9 siblings, 0 replies; 11+ messages in thread
From: psimerda at redhat dot com @ 2013-02-24 22:12 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14415
Pavel Šimerda <psimerda at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware |psimerda at redhat dot com
|dot org |
--
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (7 preceding siblings ...)
2013-02-24 22:12 ` psimerda at redhat dot com
@ 2013-10-20 20:54 ` neleai at seznam dot cz
2014-06-17 18:51 ` fweimer at redhat dot com
9 siblings, 0 replies; 11+ messages in thread
From: neleai at seznam dot cz @ 2013-10-20 20:54 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14415
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neleai at seznam dot cz
--- Comment #6 from Ondrej Bilka <neleai at seznam dot cz> ---
Could you send these patches to libc-alpha? In second one wouldn't be defining
AI_DEFAULT as 0 more reasonable?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL
2012-07-28 9:39 [Bug network/14415] New: AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL psimerda at redhat dot com
` (8 preceding siblings ...)
2013-10-20 20:54 ` neleai at seznam dot cz
@ 2014-06-17 18:51 ` fweimer at redhat dot com
9 siblings, 0 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2014-06-17 18:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14415
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread