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:
parent
844eacfe0f
commit
2cff354f1a
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user