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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to