]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3399] Corrected a couple of typos and little errors spotted in review.
authorMarcin Siodelski <marcin@isc.org>
Mon, 26 May 2014 16:14:51 +0000 (18:14 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 26 May 2014 16:14:51 +0000 (18:14 +0200)
doc/examples/kea4/several-subnets.json
doc/examples/kea4/single-subnet.json
src/bin/dhcp4/ctrl_dhcp4_srv.cc
src/bin/dhcp4/ctrl_dhcp4_srv.h

index 1d52fb7b6ad1d144bb3177dc3de5ce2b134f2a86..a3b04b271e5b7f10e7bdd9284906d17cc4051a40 100644 (file)
@@ -1,5 +1,5 @@
 # This is an example configuration file for DHCPv4 server in Kea.
-# It's a basic scenario with four IPv6 subnets configured. In each
+# It's a basic scenario with three IPv4 subnets configured. In each
 # subnet, there's a smaller pool of dynamic addresses.
 
 { "Dhcp4":
     "type": "memfile"
   },
 
-# Addresses will be assigned with preferred and valid lifetimes
-# being 3000 and 4000, respectively. Client is told to start
-# renewing after 1000 seconds. If the server does not repond
-# after 2000 seconds since the lease was granted, client is supposed
-# to start REBIND procedure (emergency renewal that allows switching
-# to a different server).
+# Addresses will be assigned with the valid lifetimes being 4000.
+# Client is told to start renewing after 1000 seconds. If the server
+# does not repond after 2000 seconds since the lease was granted, client
+# is supposed to start REBIND procedure (emergency renewal that allows
+# switching to a different server).
   "valid-lifetime": 4000,
   "renew-timer": 1000,
   "rebind-timer": 2000,
index 779e89db5c30ce8498beb72a2b9ee49c816bae60..9afef91ff4ea231b332a9b31a084c91f2baaa003 100644 (file)
@@ -1,6 +1,6 @@
 # This is an example configuration file for DHCPv4 server in Kea.
-# It's a basic scenario with four IPv6 subnets configured. In each
-# subnet, there's a smaller pool of dynamic addresses.
+# It is a basic scenario with one IPv4 subnet configured. The subnet
+# contains a single pool of dynamically allocated addresses.
 
 { "Dhcp4":
 
@@ -15,9 +15,8 @@
     "type": "memfile"
   },
 
-# Addresses will be assigned with preferred and valid lifetimes
-# being 3000 and 4000, respectively. Client is told to start
-# renewing after 1000 seconds. If the server does not repond
+# Addresses will be assigned with valid lifetimes being 4000. Client
+# is told to start renewing after 1000 seconds. If the server does not respond
 # after 2000 seconds since the lease was granted, client is supposed
 # to start REBIND procedure (emergency renewal that allows switching
 # to a different server).
index 083f7c25c7dec2c56dab77ccc7a9fbe28d553fae..dd6fc4f9b906d2d022bc1d6b209988888135cd7e 100644 (file)
@@ -39,7 +39,7 @@ ControlledDhcpv4Srv::commandShutdownHandler(const string&, ConstElementPtr) {
         return (answer);
     }
     ConstElementPtr answer = isc::config::createAnswer(0, "Shutting down.");
-        return (answer);
+    return (answer);
 }
 
 ConstElementPtr
index 25db7ac08f9c91921bb70f44c42535ce0b919799..d590772f1ddec84d22f17864795d3e50ba5f0fa7 100644 (file)
@@ -58,7 +58,7 @@ public:
 
     /// @brief Performs cleanup, immediately before termination
     ///
-    /// This method performs final clean up, just before the Dhcpv6Srv object
+    /// This method performs final clean up, just before the Dhcpv4Srv object
     /// is destroyed. The actual behavior is backend dependent. For Bundy
     /// backend, it terminates existing session with msgq. After calling
     /// it, no further messages over msgq (commands or configuration updates)
@@ -70,7 +70,7 @@ public:
     /// @brief Initiates shutdown procedure for the whole DHCPv4 server.
     void shutdown();
 
-    /// @brief command processor
+    /// @brief Command processor
     ///
     /// This method is uniform for all config backends. It processes received
     /// command (as a string + JSON arguments). Internally, it's just a
@@ -86,7 +86,7 @@ public:
     static isc::data::ConstElementPtr
     processCommand(const std::string& command, isc::data::ConstElementPtr args);
 
-    /// @brief configuration processor
+    /// @brief Configuration processor
     ///
     /// This is a callback for handling incoming configuration updates.
     /// This method should be called by all configuration backends when the
@@ -101,7 +101,7 @@ public:
     static isc::data::ConstElementPtr
     processConfig(isc::data::ConstElementPtr new_config);
 
-    /// @brief returns pointer to the sole instance of Dhcpv4Srv
+    /// @brief Returns pointer to the sole instance of Dhcpv4Srv
     ///
     /// @note may return NULL, if called before server is spawned
     static ControlledDhcpv4Srv* getInstance() {
@@ -128,7 +128,7 @@ protected:
     /// @brief IOService object, used for all ASIO operations.
     isc::asiolink::IOService io_service_;
 
-    /// @brief handler for processing 'shutdown' command
+    /// @brief Handler for processing 'shutdown' command
     ///
     /// This handler processes shutdown command, which initializes shutdown
     /// procedure.
@@ -140,7 +140,7 @@ protected:
     commandShutdownHandler(const std::string& command,
                            isc::data::ConstElementPtr args);
 
-    /// @brief handler for processing 'libreload' command
+    /// @brief Handler for processing 'libreload' command
     ///
     /// This handler processes libreload command, which unloads all hook
     /// libraries and reloads them.
@@ -153,7 +153,7 @@ protected:
     commandLibReloadHandler(const std::string& command,
                             isc::data::ConstElementPtr args);
 
-    /// @brief handler for processing 'config-reload' command
+    /// @brief Handler for processing 'config-reload' command
     ///
     /// This handler processes config-reload command, which processes
     /// configuration specified in args parameter.