Comment 10 for bug 153571

Revision history for this message
In , Michael Kerrisk (mtk-manpages) 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?