BIND 10 pd-ietf-demo, updated. 4d71b071d1feafe88cc3756fd4e678301e5f0b70 [3195] Bugfix in activate IPv6 interfaces

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Oct 16 09:13:19 UTC 2013


The branch, pd-ietf-demo has been updated
       via  4d71b071d1feafe88cc3756fd4e678301e5f0b70 (commit)
      from  770f4dfb5ac6abd620a01215ed85c1719b946f11 (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 4d71b071d1feafe88cc3756fd4e678301e5f0b70
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Wed Oct 16 11:12:52 2013 +0200

    [3195] Bugfix in activate IPv6 interfaces
    
     - exceptions are now more verbose

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

Summary of changes:
 src/bin/dhcp6/dhcp6_srv.cc |    2 +-
 src/lib/dhcp/iface_mgr.cc  |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index 2a27e67..381d7c0 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -2229,7 +2229,7 @@ Dhcpv6Srv::openActiveSockets(const uint16_t port) {
                       << " trying to reopen sockets after reconfiguration");
         }
         if (CfgMgr::instance().isActiveIface(iface->getName())) {
-            iface_ptr->inactive4_ = false;
+            iface_ptr->inactive6_ = false;
             LOG_INFO(dhcp6_logger, DHCP6_ACTIVATE_INTERFACE)
                 .arg(iface->getFullName());
 
diff --git a/src/lib/dhcp/iface_mgr.cc b/src/lib/dhcp/iface_mgr.cc
index 536f68c..2bc685f 100644
--- a/src/lib/dhcp/iface_mgr.cc
+++ b/src/lib/dhcp/iface_mgr.cc
@@ -375,7 +375,8 @@ bool IfaceMgr::openSockets6(const uint16_t port) {
 
             sock = openSocket(iface->getName(), *addr, port);
             if (sock < 0) {
-                isc_throw(SocketConfigError, "failed to open unicast socket");
+                isc_throw(SocketConfigError, "failed to open unicast socket on "
+                          << addr->toText() << " on interface " << iface->getName());
             }
 
             count++;
@@ -403,7 +404,9 @@ bool IfaceMgr::openSockets6(const uint16_t port) {
 
             sock = openSocket(iface->getName(), *addr, port);
             if (sock < 0) {
-                isc_throw(SocketConfigError, "failed to open unicast socket");
+                isc_throw(SocketConfigError, "failed to open link-local socket on "
+                          << addr->toText() << " on interface "
+                          << iface->getName());
             }
 
             // Binding socket to unicast address and then joining multicast group



More information about the bind10-changes mailing list