summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2012-03-17 21:57:48 +0000
committerchristos <christos@NetBSD.org>2012-03-17 21:57:48 +0000
commit321537e48e322db0581daefcab96230ab4ea70b3 (patch)
tree0b98509d9d36bcb2323b21388b8f4faef294f459 /include
parent4e9d5d3f071de342c0b2e8164f40e8a4880c3d49 (diff)
Add AI_ADDRCONFIG
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 24761fa3cab..42ade05be79 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -1,4 +1,4 @@
-/* $NetBSD: netdb.h,v 1.64 2010/05/05 17:12:29 christos Exp $ */
+/* $NetBSD: netdb.h,v 1.65 2012/03/17 21:57:48 christos Exp $ */
/*
* ++Copyright++ 1980, 1983, 1988, 1993
@@ -269,7 +269,9 @@ struct addrinfo {
#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_NUMERICSERV)
+ (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | \
+ AI_ADDRCONFIG)
+#define AI_ADDRCONFIG 0x00000400 /* only if any address is assigned */
#endif
#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 520 || \