diff options
author | ume <ume@FreeBSD.org> | 2001-02-19 13:13:51 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-02-19 13:13:51 +0000 |
commit | 4c1233433d4d46f6e4a755a79944ded2cc7e5420 (patch) | |
tree | e0a1daa904d90368c9eb134b9933486d7756ba19 /include/netdb.h | |
parent | 75c4cc264f05d01d27e76c1cbcfab54925d74f4a (diff) | |
download | FreeBSD-src-4c1233433d4d46f6e4a755a79944ded2cc7e5420.zip FreeBSD-src-4c1233433d4d46f6e4a755a79944ded2cc7e5420.tar.gz |
Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mews is known. Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h index 03b4f3e..f07cbf3 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -167,7 +167,8 @@ struct addrinfo { #define AI_CANONNAME 0x00000002 /* fill ai_canonname */ #define AI_NUMERICHOST 0x00000004 /* prevent name resolution */ /* valid flags for addrinfo */ -#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST) +#define AI_MASK \ + (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_ADDRCONFIG) #define AI_ALL 0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */ #define AI_V4MAPPED_CFG 0x00000200 /* accept IPv4-mapped if kernel supports */ |