BIND 10 master, updated. 3663624dd0efb7d2864117c430b6b9c1efa41e11 [master] getaddrinfo portability
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Dec 22 17:32:35 UTC 2011
The branch, master has been updated
via 3663624dd0efb7d2864117c430b6b9c1efa41e11 (commit)
from 9a2f395450e0241bc0f56bca2f7a3d3ff24aad81 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3663624dd0efb7d2864117c430b6b9c1efa41e11
Author: Jeremy C. Reed <jreed at ISC.org>
Date: Thu Dec 22 11:31:47 2011 -0600
[master] getaddrinfo portability
check for AI_ADDRCONFIG
This was from the trac1526 branch.
-----------------------------------------------------------------------
Summary of changes:
tests/tools/perfdhcp/perfdhcp.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp.c b/tests/tools/perfdhcp/perfdhcp.c
index e43b37f..4ae1544 100644
--- a/tests/tools/perfdhcp/perfdhcp.c
+++ b/tests/tools/perfdhcp/perfdhcp.c
@@ -1888,7 +1888,11 @@ getserveraddr(const int flags)
service = "547";
}
hints.ai_socktype = SOCK_DGRAM;
- hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV | flags;
+
+ hints.ai_flags = AI_NUMERICSERV | flags;
+#if defined(AI_ADDRCONFIG)
+ hints.ai_flags |= AI_ADDRCONFIG;
+#endif
hints.ai_protocol = IPPROTO_UDP;
ret = getaddrinfo(servername, service, &hints, &res);
@@ -1985,7 +1989,10 @@ getlocaladdr(void)
service = "546";
}
hints.ai_socktype = SOCK_DGRAM;
- hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV;
+ hints.ai_flags = AI_NUMERICSERV;
+#if defined(AI_ADDRCONFIG)
+ hints.ai_flags |= AI_ADDRCONFIG;
+#endif
hints.ai_protocol = IPPROTO_UDP;
ret = getaddrinfo(localname, service, &hints, &res);
More information about the bind10-changes
mailing list