Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include PR/25827, PR/32373: addr AI_SRV
details: https://anonhg.NetBSD.org/src/rev/07477e555d9a
branches: trunk
changeset: 786616:07477e555d9a
user: christos <christos%NetBSD.org@localhost>
date: Fri May 03 19:34:13 2013 +0000
description:
PR/25827, PR/32373: addr AI_SRV
diffstat:
include/netdb.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r dcc34113d5f2 -r 07477e555d9a include/netdb.h
--- a/include/netdb.h Fri May 03 19:31:13 2013 +0000
+++ b/include/netdb.h Fri May 03 19:34:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netdb.h,v 1.66 2013/04/27 21:22:05 joerg Exp $ */
+/* $NetBSD: netdb.h,v 1.67 2013/05/03 19:34:13 christos Exp $ */
/*
* ++Copyright++ 1980, 1983, 1988, 1993
@@ -266,11 +266,17 @@
#define AI_CANONNAME 0x00000002 /* fill ai_canonname */
#define AI_NUMERICHOST 0x00000004 /* prevent host name resolution */
#define AI_NUMERICSERV 0x00000008 /* prevent service name resolution */
+#define AI_ADDRCONFIG 0x00000400 /* only if any address is assigned */
/* valid flags for addrinfo (not a standard def, apps should not use it) */
+#ifdef _NETBSD_SOURCE
+#define AI_SRV 0x00000800 /* do _srv lookups */
+#define AI_MASK \
+ (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | \
+ AI_ADDRCONFIG | AI_SRV)
+#else
#define AI_MASK \
(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 || \
Home |
Main Index |
Thread Index |
Old Index