]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4308] Changes after review
authorTomek Mrugalski <tomasz@isc.org>
Wed, 8 Jun 2016 18:55:06 +0000 (20:55 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 8 Jun 2016 18:55:06 +0000 (20:55 +0200)
 - .arg() calls now in separate lines
 - clarified comment about clients meeting client class criteria

src/lib/dhcpsrv/cfg_subnets4.cc

index 3a5a2977870379aa9e95be1673fea984b20a0f04..86ea4528688f604312d5171c116db0e6aa93c0b5 100644 (file)
@@ -100,7 +100,7 @@ CfgSubnets4::selectSubnet(const SubnetSelector& selector) const {
                 continue;
             }
 
-            // Eliminate those subnets that do not meet client class criteria.
+            // If a subnet meets the client class criteria return it.
             if ((*subnet)->clientSupported(selector.client_classes_)) {
                 return (*subnet);
             }
@@ -182,11 +182,12 @@ CfgSubnets4::selectSubnet(const std::string& iface,
             continue;
         }
 
-        // Eliminate those subnets that do not meet client class criteria.
+        // If a subnet meets the client class criteria return it.
         if ((*subnet)->clientSupported(client_classes)) {
             LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE,
                       DHCPSRV_CFGMGR_SUBNET4_IFACE)
-                .arg((*subnet)->toText()).arg(iface);
+                .arg((*subnet)->toText())
+                .arg(iface);
             return (*subnet);
         }
     }
@@ -206,10 +207,11 @@ CfgSubnets4::selectSubnet(const IOAddress& address,
             continue;
         }
 
-        // Eliminate those subnets that do not meet client class criteria.
+        // If a subnet meets the client class criteria return it.
         if ((*subnet)->clientSupported(client_classes)) {
             LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE, DHCPSRV_CFGMGR_SUBNET4_ADDR)
-                .arg((*subnet)->toText()).arg(address.toText());
+                .arg((*subnet)->toText())
+                .arg(address.toText());
             return (*subnet);
         }
     }