aboutsummaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2015-12-18 18:08:53 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2015-12-18 18:08:53 +0000
commit2cff354f1a56af10ad02164a9ee38c013ac80688 (patch)
tree2e3b7b1c38606a5cc0cff594c243bf12f35633c7 /include/netdb.h
parent844eacfe0fada02e7aa8f879289d3794e656d24f (diff)
downloadsrc-2cff354f1a56af10ad02164a9ee38c013ac80688.tar.gz
src-2cff354f1a56af10ad02164a9ee38c013ac80688.zip
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
Notes
Notes: svn path=/head/; revision=292446
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h2
1 files changed, 1 insertions, 1 deletions
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 */