public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags
@ 2012-12-16 15:45 psimerda at redhat dot com
  2012-12-18 14:25 ` [Bug network/14965] remove AI_ADDRCONFIG from default " psimerda at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: psimerda at redhat dot com @ 2012-12-16 15:45 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14965

             Bug #: 14965
           Summary: remove AI_ADDRCONFIG from getaddrinfo() flags
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
        AssignedTo: unassigned@sourceware.org
        ReportedBy: psimerda@redhat.com
    Classification: Unclassified


AI_ADDRCONFIG can be beneficial to applications when it's only used for the
connect(), sendto(), etc. See a detailed description of this topic:

https://fedoraproject.org/wiki/Networking/NameResolution/ADDRCONFIG

The defaults are only used when an application doesn't supply hints. But,
virtually any application that wants to connect() wants to also specify at
least the transport protocol (TCP, UDP). That means that applications that
would benefit from AI_ADDRCONFIG won't use the defaults anyway.

-- 
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] 5+ messages in thread

* [Bug network/14965] remove AI_ADDRCONFIG from default getaddrinfo() flags
  2012-12-16 15:45 [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags psimerda at redhat dot com
@ 2012-12-18 14:25 ` psimerda at redhat dot com
  2013-01-03 14:54 ` psimerda at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: psimerda at redhat dot com @ 2012-12-18 14:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14965

Pavel Šimerda <psimerda at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|remove AI_ADDRCONFIG from   |remove AI_ADDRCONFIG from
                   |getaddrinfo() flags         |default getaddrinfo() flags

-- 
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] 5+ messages in thread

* [Bug network/14965] remove AI_ADDRCONFIG from default getaddrinfo() flags
  2012-12-16 15:45 [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags psimerda at redhat dot com
  2012-12-18 14:25 ` [Bug network/14965] remove AI_ADDRCONFIG from default " psimerda at redhat dot com
@ 2013-01-03 14:54 ` psimerda at redhat dot com
  2013-02-24 22:12 ` psimerda at redhat dot com
  2014-06-14  5:34 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ 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=14965

--- Comment #1 from Pavel Šimerda <psimerda at redhat dot com> 2013-01-03 14:53:54 UTC ---
Created attachment 6793
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6793
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] 5+ messages in thread

* [Bug network/14965] remove AI_ADDRCONFIG from default getaddrinfo() flags
  2012-12-16 15:45 [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags psimerda at redhat dot com
  2012-12-18 14:25 ` [Bug network/14965] remove AI_ADDRCONFIG from default " psimerda at redhat dot com
  2013-01-03 14:54 ` psimerda at redhat dot com
@ 2013-02-24 22:12 ` psimerda at redhat dot com
  2014-06-14  5:34 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ 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=14965

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] 5+ messages in thread

* [Bug network/14965] remove AI_ADDRCONFIG from default getaddrinfo() flags
  2012-12-16 15:45 [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags psimerda at redhat dot com
                   ` (2 preceding siblings ...)
  2013-02-24 22:12 ` psimerda at redhat dot com
@ 2014-06-14  5:34 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-14  5:34 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14965

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] 5+ messages in thread

end of thread, other threads:[~2014-06-14  5:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-16 15:45 [Bug network/14965] New: remove AI_ADDRCONFIG from getaddrinfo() flags psimerda at redhat dot com
2012-12-18 14:25 ` [Bug network/14965] remove AI_ADDRCONFIG from default " psimerda at redhat dot com
2013-01-03 14:54 ` psimerda at redhat dot com
2013-02-24 22:12 ` psimerda at redhat dot com
2014-06-14  5:34 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).