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
This commit is contained in:
Hajimu UMEMOTO 2015-12-18 18:08:53 +00:00
parent 844eacfe0f
commit 2cff354f1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292446

View File

@ -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 */