]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3149] Minor changes after review (spaces, comments clean ups)
authorTomek Mrugalski <tomasz@isc.org>
Thu, 19 Sep 2013 09:20:50 +0000 (11:20 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 19 Sep 2013 09:20:50 +0000 (11:20 +0200)
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/pool.h

index c8197a7ac871a714791ebc13e1949bb6fc52298b..2f41a85449fc9c9c9c11489b18a6bb2085b72978 100644 (file)
@@ -177,7 +177,8 @@ AllocEngine::AllocEngine(AllocType engine_type, unsigned int attempts,
                          bool ipv6)
     :attempts_(attempts) {
 
-    Lease::Type basic_type = ipv6?Lease::TYPE_NA:Lease::TYPE_V4;
+    // Choose the basic (normal address) lease type
+    Lease::Type basic_type = ipv6 ? Lease::TYPE_NA : Lease::TYPE_V4;
 
     // Initalize normal address allocators
     switch (engine_type) {
index 54b2e51e8c488acc162e69ffc70d78eb48c2ba82..0d73b40149f4b59ba5c1ee1e2b116fd2dd2e2e29 100644 (file)
@@ -82,7 +82,7 @@ protected:
     /// Pool class directly. Instances of Pool4 and Pool6 should be created
     /// instead.
     ///
-    /// @param type type of the pool
+    /// @param type type of lease that will be served from this pool
     /// @param first first address of a range
     /// @param last last address of a range
     Pool(Lease::Type type,
@@ -113,7 +113,7 @@ protected:
     /// @todo: This field is currently not used.
     std::string comments_;
 
-    /// @brief defines a pool type
+    /// @brief defines a lease type that will be served from this pool
     Lease::Type type_;
 };