From 2cff354f1a56af10ad02164a9ee38c013ac80688 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Fri, 18 Dec 2015 18:08:53 +0000 Subject: [PATCH] Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3). We need to change netdb.h to make it actually enabled. PR: 198092 MFC after: 1 week --- include/netdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netdb.h b/include/netdb.h index 9ed6e61471e5..102567f6c995 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -179,7 +179,7 @@ struct addrinfo { /* valid flags for addrinfo (not a standard def, apps should not use it) */ #define AI_MASK \ (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | \ - AI_ADDRCONFIG) + AI_ADDRCONFIG | AI_ALL | AI_V4MAPPED) #define AI_ALL 0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */ #define AI_V4MAPPED_CFG 0x00000200 /* accept IPv4-mapped if kernel supports */