Comment 14 for bug 153571

Revision history for this message
Pavel Šimerda (pavlix-a) wrote :

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).