From 55621219f54a49a3877e8da2ae39078ed442909f Mon Sep 17 00:00:00 2001 From: ume Date: Fri, 25 Dec 2015 11:17:21 +0000 Subject: Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3). PR: 198092 --- include/netdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 */ -- cgit v1.1 From 6885269fd53f8f58470f0243c006eac9eedf15b2 Mon Sep 17 00:00:00 2001 From: ume Date: Sun, 27 Dec 2015 00:37:04 +0000 Subject: MFC r292514: addrinfo.ai_family is an address family, not a protocol family. PR: 162434 --- include/netdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/netdb.h b/include/netdb.h index 102567f..a73d2af 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -122,7 +122,7 @@ struct protoent { struct addrinfo { int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */ - int ai_family; /* PF_xxx */ + int ai_family; /* AF_xxx */ int ai_socktype; /* SOCK_xxx */ int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ socklen_t ai_addrlen; /* length of ai_addr */ -- cgit v1.1