aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2005-02-03 07:47:55 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2005-02-03 07:47:55 +0000
commit3e24f131d6affb012ee73fcb89362a7b91110a75 (patch)
tree8de25369398f6ef1496b0914f71794023ce80593 /include
parent3027636fc4ca32acf91ad43988ef5c55e4a22d3d (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/netdb.h b/include/netdb.h
index ba3ed32f39a9..4278794af072 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 */