diff options
author | ume <ume@FreeBSD.org> | 2005-01-27 14:45:11 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-01-27 14:45:11 +0000 |
commit | 4a4e55c7dd46f4fec5bab18c86a18fbd287011d8 (patch) | |
tree | 10cb3649a94c0c01ef410c680d70c4eb8522b1fa /include | |
parent | fa89c5605faa7ae6d16c35fc946e46a24e9d1efe (diff) | |
download | FreeBSD-src-4a4e55c7dd46f4fec5bab18c86a18fbd287011d8.zip FreeBSD-src-4a4e55c7dd46f4fec5bab18c86a18fbd287011d8.tar.gz |
implement AI_NUMERICSERV (as defined in RFC3493).
Obtained from: KAME
MFC after: 1 week
Diffstat (limited to 'include')
-rw-r--r-- | include/netdb.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/netdb.h b/include/netdb.h index ba3ed32..4278794 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -175,10 +175,12 @@ struct addrinfo { */ #define AI_PASSIVE 0x00000001 /* get address to use bind() */ #define AI_CANONNAME 0x00000002 /* fill ai_canonname */ -#define AI_NUMERICHOST 0x00000004 /* prevent name resolution */ -/* valid flags for addrinfo */ +#define AI_NUMERICHOST 0x00000004 /* prevent host name resolution */ +#define AI_NUMERICSERV 0x00000008 /* prevent service name resolution */ +/* valid flags for addrinfo (not a standard def, apps should not use it) */ #define AI_MASK \ - (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_ADDRCONFIG) + (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | \ + AI_ADDRCONFIG) #define AI_ALL 0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */ #define AI_V4MAPPED_CFG 0x00000200 /* accept IPv4-mapped if kernel supports */ |