summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2015-12-25 11:17:21 +0000
committerume <ume@FreeBSD.org>2015-12-25 11:17:21 +0000
commit55621219f54a49a3877e8da2ae39078ed442909f (patch)
tree4fae6957848e34a9978725bc4fd58583879faf43 /include/netdb.h
parent8feffa60ae68c48c771c3384447148f6102f0010 (diff)
downloadFreeBSD-src-55621219f54a49a3877e8da2ae39078ed442909f.zip
FreeBSD-src-55621219f54a49a3877e8da2ae39078ed442909f.tar.gz
Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).
PR: 198092
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 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