Browse Source

[4308] Changes after review

 - .arg() calls now in separate lines
 - clarified comment about clients meeting client class criteria
Tomek Mrugalski 9 years ago
parent
commit
f2bb606118
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/lib/dhcpsrv/cfg_subnets4.cc

+ 7 - 5
src/lib/dhcpsrv/cfg_subnets4.cc

@@ -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);
         }
     }