BIND 10 trac1526, updated. a2120b04405184479b27b52d30cab38903b6f83c [1526] Conditional compilation for perfdhcp improved.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Dec 22 16:53:46 UTC 2011


The branch, trac1526 has been updated
       via  a2120b04405184479b27b52d30cab38903b6f83c (commit)
      from  102355de8ca47e80fcf3bc2a884f36907b7b7922 (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 a2120b04405184479b27b52d30cab38903b6f83c
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Thu Dec 22 17:53:27 2011 +0100

    [1526] Conditional compilation for perfdhcp improved.

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/perfdhcp/perfdhcp.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp.c b/tests/tools/perfdhcp/perfdhcp.c
index 3e38e2d..b987a3b 100644
--- a/tests/tools/perfdhcp/perfdhcp.c
+++ b/tests/tools/perfdhcp/perfdhcp.c
@@ -1920,9 +1920,7 @@ getserveraddr(const int flags)
 	hints.ai_socktype = SOCK_DGRAM;
 
 	hints.ai_flags = AI_NUMERICSERV | flags;
-#if defined(OS_LINUX)
-        /// TODO: Make this OS_LINUX | OS_MAC as this works on Mac
-        /// and possibly other BSDs.
+#if defined(AI_ADDRCONFIG)
 	hints.ai_flags |= AI_ADDRCONFIG;
 #endif
 	hints.ai_protocol = IPPROTO_UDP;
@@ -2022,8 +2020,7 @@ getlocaladdr(void)
 	}
 	hints.ai_socktype = SOCK_DGRAM;
 	hints.ai_flags =  AI_NUMERICSERV;
-#if defined(OS_LINUX)
-	// TODO: this will work on Mac as well (so it should be OS_LINUX | OS_MAC)
+#if defined(AI_ADDRCONFIG)
 	hints.ai_flags |= AI_ADDRCONFIG;
 #endif
 	hints.ai_protocol = IPPROTO_UDP;




More information about the bind10-changes mailing list