BIND 10 trac3242, updated. fbade26f032fdd495abe2effb0a2913b642b0ac6 [3242] Removed the commented code from the CfgMgr.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 4 11:37:22 UTC 2014


The branch, trac3242 has been updated
       via  fbade26f032fdd495abe2effb0a2913b642b0ac6 (commit)
      from  594b8277d0199731a3b282345248fea422d9ff86 (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 fbade26f032fdd495abe2effb0a2913b642b0ac6
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Feb 4 12:37:12 2014 +0100

    [3242] Removed the commented code from the CfgMgr.

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

Summary of changes:
 src/lib/dhcpsrv/cfgmgr.cc |   19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/cfgmgr.cc b/src/lib/dhcpsrv/cfgmgr.cc
index b8e3629..b6959db 100644
--- a/src/lib/dhcpsrv/cfgmgr.cc
+++ b/src/lib/dhcpsrv/cfgmgr.cc
@@ -209,23 +209,8 @@ void CfgMgr::addSubnet6(const Subnet6Ptr& subnet) {
 
 Subnet4Ptr
 CfgMgr::getSubnet4(const isc::asiolink::IOAddress& hint) const {
-
-    /*    // If there's only one subnet configured, let's just use it
-    // The idea is to keep small deployments easy. In a small network - one
-    // router that also runs DHCPv6 server. Users specifies a single pool and
-    // expects it to just work. Without this, the server would complain that it
-    // doesn't have IP address on its interfaces that matches that
-    // configuration. Such requirement makes sense in IPv4, but not in IPv6.
-    // The server does not need to have a global address (using just link-local
-    // is ok for DHCPv6 server) from the pool it serves.
-    if (subnets4_.size() == 1) {
-        LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE,
-                  DHCPSRV_CFGMGR_ONLY_SUBNET4)
-                  .arg(subnets4_[0]->toText()).arg(hint.toText());
-        return (subnets4_[0]);
-        }*/
-
-    // If there is more than one, we need to choose the proper one
+    // Iterate over existing subnets to find a suitable one for the
+    // given address.
     for (Subnet4Collection::const_iterator subnet = subnets4_.begin();
          subnet != subnets4_.end(); ++subnet) {
         if ((*subnet)->inRange(hint)) {



More information about the bind10-changes mailing list