summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2015-12-18 18:08:53 +0000
committerume <ume@FreeBSD.org>2015-12-18 18:08:53 +0000
commit658c0fc8567d7baad6d98a169f5b867b17e383b1 (patch)
tree2e3b7b1c38606a5cc0cff594c243bf12f35633c7 /include
parent207f69d62148253cffcc776c310c024dc2a3b6d1 (diff)
downloadFreeBSD-src-658c0fc8567d7baad6d98a169f5b867b17e383b1.zip
FreeBSD-src-658c0fc8567d7baad6d98a169f5b867b17e383b1.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 9ed6e61..102567f 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 */
OpenPOWER on IntegriCloud