]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5272] spelling
authorFrancis Dupont <fdupont@isc.org>
Thu, 3 Aug 2017 12:22:11 +0000 (14:22 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 3 Aug 2017 12:22:11 +0000 (14:22 +0200)
src/hooks/dhcp/lease_cmds/lease_cmds.cc
src/hooks/dhcp/lease_cmds/lease_cmds.h
src/hooks/dhcp/lease_cmds/lease_parser.cc
src/hooks/dhcp/lease_cmds/lease_parser.h
src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc
src/lib/dhcpsrv/cfg_subnets4.h
src/lib/dhcpsrv/cfg_subnets6.h

index d9a033ca452fe4a99ec2db6ac9444bb5d61874f9..f4c9b1c2221d06841ea00331bbc5b0d9f5d35958 100644 (file)
@@ -87,14 +87,14 @@ public:
     }
 
     /// @brief specifies parameter types (true = query by address, false =
-    ///         query by indetifier-type,identifier)
+    ///         query by identifier-type,identifier)
     Type query_type;
 
     Lease::Type lease_type;
 
     uint32_t iaid;
 
-    /// @brief Default contstructor.
+    /// @brief Default constructor.
     Parameters()
         :addr("::"), query_type(TYPE_ADDR), lease_type(Lease::TYPE_NA), iaid(0) {
     }
@@ -119,7 +119,7 @@ private:
     /// @throw Unexpected if CommandMgr is not available (should not happen)
     void registerCommands();
 
-    /// @brief Dergisters commands:
+    /// @brief Deregisters commands:
     ///
     /// Deregisters:
     /// - lease4-add
@@ -154,7 +154,7 @@ private:
     ///         "valid-lft": 3600,
     ///         "expire": 12345678,
     ///         "subnet-id": 1,
-    ///         "fdqn-fwd": true,
+    ///         "fqdn-fwd": true,
     ///         "fqdn-rev": true,
     ///         "hostname": "myhost.example.org",
     ///         "state": 0
@@ -384,7 +384,7 @@ LeaseCmdsImpl::getParameters(const ConstElementPtr& params) {
 
     // We support several sets of parameters for leaseX-get/lease-del:
     // lease-get(type, address)
-    // lease-get(type, subnet-id, interifier-type, identifier)
+    // lease-get(type, subnet-id, identifier-type, identifier)
 
     if (params->contains("type")) {
         string t = params->get("type")->stringValue();
index 48161e541bc538685c7fe4ecb384600875d1be50..c43ccb9b180854540f745327e47db1f0421a4e5d 100644 (file)
@@ -18,13 +18,13 @@ class LeaseCmdsImpl;
 /// @brief A wrapper class that provides convenient initialization to the library.
 ///
 /// This is a wrapper class that simply registers extra commands when
-/// instantiated and deregisters them when the instance is destryed.
+/// instantiated and deregisters them when the instance is destroyed.
 ///
 /// For an actual implementation, see @ref LeaseCmdsImpl class in lease_cmds.cc file.
 class LeaseCmds {
 public:
 
-    /// @brief Initalizes additional host commands.
+    /// @brief Initializes additional host commands.
     ///
     /// First, it ensures that either alternate host data source or CfgHosts
     /// (configuration storage) are available. Then it checks that CommandMgr
index 2506cddca1e16fbe28552952dd41c14bb22d23ca..52a1d5de45ec4c13d35f5de83022fd89f3ac4594 100644 (file)
@@ -83,7 +83,7 @@ Lease4Parser::parse(ConstSrvConfigPtr& cfg,
     /// timestamp is specified explicitly, we will use that. Note there are no
     /// checks whether this is in the past. There may be valid cases when user
     /// wants to insert expired leases, e.g. when migrating from one DHCP server
-    /// to another and wants to migrate the database as is, without disarding
+    /// to another and wants to migrate the database as is, without discarding
     /// any leases.
     time_t cltt;
     if (lease_info->contains("expire")) {
@@ -210,7 +210,7 @@ Lease6Parser::parse(ConstSrvConfigPtr& cfg,
     /// no checks whether this is in the past. There may be valid cases when
     /// user wants to insert expired leases, e.g. when migrating from one
     /// DHCP server to another and wants to migrate the database as is, without
-    /// disarding any leases.
+    /// discarding any leases.
     time_t cltt;
     if (lease_info->contains("expire")) {
         int64_t tmp = getUint32(lease_info, "expire");
index cd0e9836db73163ca5128fc0aca75b54a8f5b388..f5d2dafbadb7690a0ed055e711acc248b213adb4 100644 (file)
@@ -39,7 +39,7 @@ protected:
 ///     "cltt": 12345678,
 ///     "expire": 1499282530,
 ///     "subnet-id": 1,
-///     "fdqn-fwd": true,
+///     "fqdn-fwd": true,
 ///     "fqdn-rev": true,
 ///     "hostname": "myhost.example.org",
 ///     "state": 0
@@ -74,7 +74,7 @@ public:
 ///     "valid-lft": 3600,
 ///     "expire": 1499282530,
 ///     "subnet-id": 1,
-///     "fdqn-fwd": true,
+///     "fqdn-fwd": true,
 ///     "fqdn-rev": true,
 ///     "hostname": "myhost.example.org",
 ///     "state": 0
index bc13ab67aad6402f5dca27c5a35faddc7b181ee3..b5b019a0f5ea583f43152e8a05d7f1c53fd9d28a 100644 (file)
@@ -46,7 +46,7 @@ public:
         libraries_.push_back(make_pair(lib, params));
     }
 
-    /// @brief Load all specified libriaries.
+    /// @brief Load all specified libraries.
     ///
     /// The libraries are stored in libraries
     void loadLibs() {
@@ -745,7 +745,7 @@ TEST_F(LeaseCmdsTest, Lease6AddBadParams) {
     exp_rsp = "The address 3000::3 does not belong to subnet 2001:db8::/48, subnet-id=66";
     testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
 
-    // v4? You're a time traveller from early 80s or what?
+    // v4? You're a time traveler from early 80s or what?
     txt =
         "{\n"
         "    \"command\": \"lease6-add\",\n"
index d37aa112af5fd72543eba1e4c309125290d6e330..26d2d1d8f37625e21f44bc9f60bd8b9544c2f593 100644 (file)
@@ -99,7 +99,7 @@ public:
 
     /// @brief Returns subnet with specified subnet-id value
     ///
-    /// Warning: this method uses full scan. Its use is not recommeded for
+    /// Warning: this method uses full scan. Its use is not recommended for
     /// packet processing.
     ///
     /// @return Subnet (or NULL)
index e5ed5adb065fa54e3d6e988318f8de20169216f2..082769ac9fb8535e55516f13fb024a5901dc1649 100644 (file)
@@ -89,7 +89,7 @@ public:
 
     /// @brief Returns subnet with specified subnet-id value
     ///
-    /// Warning: this method uses full scan. Its use is not recommeded for
+    /// Warning: this method uses full scan. Its use is not recommended for
     /// packet processing.
     ///
     /// @return Subnet (or NULL)