BIND 10 trac1555, updated. 98c85cb61b5bcbf948e1ea0923adcfcdca753cbb [1555] Open only selected sockets when Kea starts up.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jul 11 15:02:18 UTC 2013


The branch, trac1555 has been updated
       via  98c85cb61b5bcbf948e1ea0923adcfcdca753cbb (commit)
      from  abad8addef410474f0bb6bf6e15831902017e579 (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 98c85cb61b5bcbf948e1ea0923adcfcdca753cbb
Author: Marcin Siodelski <marcin at isc.org>
Date:   Thu Jul 11 17:02:01 2013 +0200

    [1555] Open only selected sockets when Kea starts up.

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

Summary of changes:
 src/bin/dhcp4/ctrl_dhcp4_srv.cc |    5 +++++
 src/bin/dhcp6/ctrl_dhcp6_srv.cc |    5 +++++
 2 files changed, 10 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/ctrl_dhcp4_srv.cc b/src/bin/dhcp4/ctrl_dhcp4_srv.cc
index 4ff7f37..ebe2455 100644
--- a/src/bin/dhcp4/ctrl_dhcp4_srv.cc
+++ b/src/bin/dhcp4/ctrl_dhcp4_srv.cc
@@ -192,8 +192,13 @@ void ControlledDhcpv4Srv::establishSession() {
 
     try {
         configureDhcp4Server(*this, config_session_->getFullConfig());
+        // Configuration may disable or enable interfaces so we have to
+        // reopen sockets according to new configuration.
+        openActiveSockets(getPort(), useBroadcast());
+
     } catch (const DhcpConfigError& ex) {
         LOG_ERROR(dhcp4_logger, DHCP4_CONFIG_LOAD_FAIL).arg(ex.what());
+
     }
 
     /// Integrate the asynchronous I/O model of BIND 10 configuration
diff --git a/src/bin/dhcp6/ctrl_dhcp6_srv.cc b/src/bin/dhcp6/ctrl_dhcp6_srv.cc
index af473d1..0bd9c51 100644
--- a/src/bin/dhcp6/ctrl_dhcp6_srv.cc
+++ b/src/bin/dhcp6/ctrl_dhcp6_srv.cc
@@ -193,8 +193,13 @@ void ControlledDhcpv6Srv::establishSession() {
     try {
         // Pull the full configuration out from the session.
         configureDhcp6Server(*this, config_session_->getFullConfig());
+        // Configuration may disable or enable interfaces so we have to
+        // reopen sockets according to new configuration.
+        openActiveSockets(getPort());
+
     } catch (const DhcpConfigError& ex) {
         LOG_ERROR(dhcp6_logger, DHCP6_CONFIG_LOAD_FAIL).arg(ex.what());
+
     }
 
     /// Integrate the asynchronous I/O model of BIND 10 configuration



More information about the bind10-changes mailing list