From: Tomek Mrugalski Date: Wed, 16 Oct 2013 09:12:52 +0000 (+0200) Subject: [3195] Bugfix in activate IPv6 interfaces X-Git-Tag: bind10-1.2.0beta1-release~102^2~60^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d71b071d1feafe88cc3756fd4e678301e5f0b70;p=thirdparty%2Fkea.git [3195] Bugfix in activate IPv6 interfaces - exceptions are now more verbose --- diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 2a27e67de7..381d7c0bbe 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 536f68cf7a..2bc685fb7c 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