BIND 10 master, updated. 597e059afaa4a89e767f8f10d2a4d78223af3940 [master] [1908] Added v6 socket binding to local-link address

BIND 10 source code commits bind10-changes at lists.isc.org
Sat Apr 28 19:52:20 UTC 2012


The branch, master has been updated
       via  597e059afaa4a89e767f8f10d2a4d78223af3940 (commit)
      from  e0cb5ab6d32eae3df6e309ff73c6d331f0750168 (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 597e059afaa4a89e767f8f10d2a4d78223af3940
Author: Marcin Siodelski <marcin at isc.org>
Date:   Sat Apr 28 21:46:34 2012 +0200

    [master] [1908] Added v6 socket binding to local-link address

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

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

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp.c b/tests/tools/perfdhcp/perfdhcp.c
index ba115cc..1d533a7 100644
--- a/tests/tools/perfdhcp/perfdhcp.c
+++ b/tests/tools/perfdhcp/perfdhcp.c
@@ -1236,6 +1236,13 @@ getsock6(void)
 		perror("socket");
 		exit(1);
 	}
+	ret = bind(sock,
+		   (struct sockaddr *) &localaddr,
+		   sizeof(struct sockaddr_in6));
+	if (ret < 0) {
+		perror("Failed to bind v6 socket to local-link address");
+		exit(1);
+	}
 	/* perform the multicast stuff when the destination is multicast */
 	if (IN6_IS_ADDR_MULTICAST(&s6->sin6_addr)) {
 		int hops = 1;



More information about the bind10-changes mailing list