]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3195] Bugfix in activate IPv6 interfaces
authorTomek Mrugalski <tomasz@isc.org>
Wed, 16 Oct 2013 09:12:52 +0000 (11:12 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 16 Oct 2013 09:12:52 +0000 (11:12 +0200)
 - exceptions are now more verbose

src/bin/dhcp6/dhcp6_srv.cc
src/lib/dhcp/iface_mgr.cc

index 2a27e67de7c8ef4444dd7311c90e3c5bac180574..381d7c0bbea8165015865aa01b5590fd6ccbc875 100644 (file)
@@ -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());
 
index 536f68cf7a15ddaf75222d0efc7c1e6ec58f1a28..2bc685fb7c3740ed193afba20ed9456b74b740aa 100644 (file)
@@ -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