[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2012-12-16 Thread Pavel Šimerda
In upstream GLIBC there are two flags in the defaults:

AI_ADDRCONFIG: It is most probably *not* a good default, as it's only
useful for applications that have to set the hints anyway so that they
only recieve TCP or UDP addrinfo structures, not both.

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

AI_V4MAPPED: This is not used, as it only applies to AF_INET6 but the
default is AF_UNSPEC.

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

Therefore the only sane default is probably no flags at all
(hints.ai_flags = 0).

** Bug watch added: Sourceware.org Bugzilla #14965
   http://sourceware.org/bugzilla/show_bug.cgi?id=14965

** Bug watch added: Sourceware.org Bugzilla #14415
   http://sourceware.org/bugzilla/show_bug.cgi?id=14415

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/153571

Title:
  getaddrinfo manpage doesn't match glibc implementation when hints is
  NULL

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/153571/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2011-05-25 Thread Bug Watch Updater
Launchpad has imported 4 comments from the remote bug at
http://sourceware.org/bugzilla/show_bug.cgi?id=10567.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2009-08-27T10:07:13+00:00 Michael Kerrisk wrote:

POSIX.1-2001 and 2008 say that if the hints argument of getaddrinfo() is
NULL, then

   the behavior shall be as if it referred  to  a  structure
   containing  the value zero for the ai_flags, ai_socktype,
   and ai_protocol fields, and AF_UNSPEC for  the  ai_family
   field.

However, glibc defines ai_flags as AI_V4MAPPED | AI_ADDRCONFIG for this case. Is
this deviation from POSIX.1 intentional? Should it be fixed?

Reply at: https://bugs.launchpad.net/glibc/+bug/153571/comments/4


On 2009-08-31T12:14:51+00:00 Drepper-fsp wrote:

(In reply to comment #0)
 Should it be fixed?

No.  Like several other things in the getaddrinfo spec this is non-optimal at
best.  The defaults used in glibc are much better.

Reply at: https://bugs.launchpad.net/glibc/+bug/153571/comments/9


On 2009-09-03T04:15:22+00:00 Mtk-manpages-googlemail wrote:

Subject: Re:  getaddrinfo() hints==NULL (ai_flags) deviates 
from POSIX.1

On Mon, Aug 31, 2009 at 2:14 PM, drepper at redhat dot
comsourceware-bugzi...@sourceware.org wrote:

 --- Additional Comments From drepper at redhat dot com  2009-08-31 12:14 
 ---
 (In reply to comment #0)
 Should it be fixed?

 No.  Like several other things in the getaddrinfo spec this is non-optimal at
 best.  The defaults used in glibc are much better.

Thanks. I'll update the man page to make it clear that this choice is
deliberate.


Reply at: https://bugs.launchpad.net/glibc/+bug/153571/comments/10


On 2009-10-09T22:08:26+00:00 Paul Fee wrote:

Can some details be added as to why the glibc defaults are better than
the POSIX standard.

The default only applies if hints==NULL.  If the POSIX defaults are 
non-optimal, then users of
other systems (e.g. Solaris) would find it useful to know that different 
settings are preferred. 
On Solaris 10, setting hints to NULL results in POSIX defined behaviour.

Are the reasons behind glibc's defaults unique to glibc or are they related to 
network effects
which would apply to any OS or C resolver library.  If the settings are valid 
everywhere then
getaddrinfo() users would benefit from using them on non-glibc platforms.

Thanks.

Reply at: https://bugs.launchpad.net/glibc/+bug/153571/comments/11


** Changed in: glibc
   Importance: Unknown = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/153571

Title:
  getaddrinfo manpage doesn't match glibc implementation when hints is
  NULL

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-10-10 Thread Bug Watch Updater
** Changed in: glibc
   Status: Unknown = Won't Fix

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-10-09 Thread Paul Fee
Michael Kerrisk has indicated the manpages will be updated.

Please add detail about the rational for the difference between glibc
and POSIX, if you have this information.

** Changed in: manpages
   Status: New = In Progress

** Changed in: manpages
 Assignee: (unassigned) = Michael Kerrisk (mtk-manpages)

** Changed in: glibc (Ubuntu)
 Assignee: (unassigned) = Paul Fee (pfee)

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-10-09 Thread Paul Fee
Ulrich Drepper has responded to say that choice of defaults is
deliberate.  Therefore the behaviour in glibc won't be changing.  Next
task is to get the getaddrinfo manpage updated to state why there's a
discrepancy between the glibc implementation and the POSIX standard.

** Also affects: glibc via
   http://sourceware.org/bugzilla/show_bug.cgi?id=10567
   Importance: Unknown
   Status: Unknown

** Also affects: manpages
   Importance: Undecided
   Status: New

** Changed in: glibc (Ubuntu)
   Status: In Progress = Invalid

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-08-27 Thread Michael Kerrisk
Note that the reporter is marking a bug against the POSIX man page which
is taken straight from the standard. By definition, this page won't
describe glibc specifics.

I confirm that the reporter is correct in pointing out that glibc
deviates from the standard. (I don't know the reasons) The Linux man
page documents the deviation:

http://www.kernel.org/doc/man-pages/online/pages/man3/getaddrinfo.3.html

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-08-27 Thread Michael Kerrisk
For what it's worth, I filed this glibc bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=10567

** Bug watch added: Sourceware.org Bugzilla #10567
   http://sourceware.org/bugzilla/show_bug.cgi?id=10567

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-08-27 Thread Paul Fee
Thanks for the update.

The getaddrinfo manpage on Ubuntu 9.04 has text.

Specifying hints as NULL is equivalent to setting ai_socktype and
ai_protocol to 0; ai_family to AF_UNSPEC; and ai_flags to (AI_V4MAPPED |
AI_ADDRCONFIG).

I notice there are two getaddrinfo manpages, section 3 and 3posix.  I
didn't spotted that before.

The section 3 manpage correctly documents the glibc implementation.  So
I the manpage part of this bug is fixed (or wasn't a bug to start with).

Thanks for raising the glibc bug, it'll be interesting to see the
reasoning behind the deviation from the POSIX standard.

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-08-27 Thread Paul Fee
Posix manpage describes the standard, not the glibc implementation.

** Changed in: manpages-posix (Ubuntu)
   Status: New = Invalid

** Changed in: manpages-posix (Ubuntu)
 Assignee: (unassigned) = Paul Fee (pfee)

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2009-08-27 Thread Paul Fee
Awaiting feedback from upstream.

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

** Changed in: glibc (Ubuntu)
   Status: Incomplete = In Progress

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2008-09-17 Thread Paul Fee
Hello Matthias,

I downloaded Hardy's libc6-dev source package (2.7-10ubuntu3), same
extraction steps as above (except 2.7 instead of 2.5).

Also checked getaddrinfo manpage (in manpages-posix-dev, 2.16-1).

In the glibc source code:
./include/netdb.h:#define AI_DEFAULT(AI_V4MAPPED | AI_ADDRCONFIG

The manpage has the text:
If hints is a null pointer, the behavior shall be as if it referred to a 
structure containing the value zero for the ai_flags, ai_socktype, and 
ai_protocol fields, and AF_UNSPEC for the ai_family field.

Since neither glibc nor the manpage has changed, the bug remains
unresolved.

Thanks,
Paul

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2008-09-08 Thread Matthias Klose
please could you recheck with hardy and/or intrepid?


** Changed in: glibc (Ubuntu)
   Status: New = Incomplete

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 153571] Re: getaddrinfo manpage doesn't match glibc implementation when hints is NULL

2007-10-17 Thread Paul Fee
** Also affects: glibc (Ubuntu)
   Importance: Undecided
   Status: New

-- 
getaddrinfo manpage doesn't match glibc implementation when hints is NULL
https://bugs.launchpad.net/bugs/153571
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs