diff options
author | Francis Dupont <fdupont@isc.org> | 2024-12-16 16:05:52 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2024-12-16 16:15:09 +0100 |
commit | 3bc9a732f8288ba752e784ad10519d7e1635582f (patch) | |
tree | 68e2d22f79e5a05b10443a3059bd6a935e432f75 | |
parent | [#2819] Fixed misspellings (diff) | |
download | kea-3bc9a732f8288ba752e784ad10519d7e1635582f.tar.xz kea-3bc9a732f8288ba752e784ad10519d7e1635582f.zip |
[#2819] Fixed remaining spelling
-rw-r--r-- | src/bin/dhcp4/tests/fqdn_unittest.cc | 2 | ||||
-rw-r--r-- | src/hooks/dhcp/perfmon/monitored_duration.h | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/dhcpsrv_messages.mes | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/ncr_generator.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/ncr_generator_unittest.cc | 4 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/util/encode/encode.h | 12 | ||||
-rw-r--r-- | src/lib/util/str.h | 2 |
8 files changed, 14 insertions, 14 deletions
diff --git a/src/bin/dhcp4/tests/fqdn_unittest.cc b/src/bin/dhcp4/tests/fqdn_unittest.cc index 92264ba16b..8c3c6b4416 100644 --- a/src/bin/dhcp4/tests/fqdn_unittest.cc +++ b/src/bin/dhcp4/tests/fqdn_unittest.cc @@ -325,7 +325,7 @@ const char* CONFIGS[] = { "}", // 12 // D2 enabled - // ddns-ttl-percent specfied + // ddns-ttl-percent specified "{ \"interfaces-config\": {\n" " \"interfaces\": [ \"*\" ]\n" "},\n" diff --git a/src/hooks/dhcp/perfmon/monitored_duration.h b/src/hooks/dhcp/perfmon/monitored_duration.h index 6cdb3b0f4f..51179c6ed7 100644 --- a/src/hooks/dhcp/perfmon/monitored_duration.h +++ b/src/hooks/dhcp/perfmon/monitored_duration.h @@ -43,7 +43,7 @@ public: /// Given a duration value: /// -# Increment the number of occurrences /// -# Add the duration to the total duration - /// -# Update the minimum and/or maxium duration accordingly + /// -# Update the minimum and/or maximum duration accordingly /// /// @param duration Duration to add. void addDuration(const Duration& duration); diff --git a/src/lib/dhcpsrv/dhcpsrv_messages.mes b/src/lib/dhcpsrv/dhcpsrv_messages.mes index 9c0e5efb19..1001f5c936 100644 --- a/src/lib/dhcpsrv/dhcpsrv_messages.mes +++ b/src/lib/dhcpsrv/dhcpsrv_messages.mes @@ -975,7 +975,7 @@ life time, the calculated TTL, and the value actually used. % DHCPSRV_DDNS_TTL_TOO_LARGE %1 of lease life time %2 is %3, using maximum of %4 instead. Logged at debug log level 55. A debug message issued when the DDNS TTL value calculated using the -ddns-ttl-percent if specfied or (0.33 if not) is larger than the +ddns-ttl-percent if specified or (0.33 if not) is larger than the the specified value of ddns-ttl-max. Kea will ignore the value and use the specified maximum instead. The message details include the percentage, the lease life time, the calculated TTL, and the value diff --git a/src/lib/dhcpsrv/ncr_generator.cc b/src/lib/dhcpsrv/ncr_generator.cc index c9584bd4f4..61540026e5 100644 --- a/src/lib/dhcpsrv/ncr_generator.cc +++ b/src/lib/dhcpsrv/ncr_generator.cc @@ -158,7 +158,7 @@ uint32_t calculateDdnsTtl(uint32_t lease_lft, uint32_t ttl = static_cast<uint32_t>(round(ttl_percent * lease_lft)); // Adjust for minimum and maximum. - // If we have a custom mininum enforce it, otherwise per RFC 4702 it + // If we have a custom minimum enforce it, otherwise per RFC 4702 it // should not less than 600. uint32_t ttl_min = (ddns_ttl_min.get() > 0) ? ddns_ttl_min.get() : 600; if (ttl < ttl_min) { diff --git a/src/lib/dhcpsrv/tests/ncr_generator_unittest.cc b/src/lib/dhcpsrv/tests/ncr_generator_unittest.cc index 98807197c4..26f82aaf3b 100644 --- a/src/lib/dhcpsrv/tests/ncr_generator_unittest.cc +++ b/src/lib/dhcpsrv/tests/ncr_generator_unittest.cc @@ -746,7 +746,7 @@ TEST_F(NCRGenerator4Test, calculateDdnsTtlThroughQueueNcr) { // No modifiers, should be RFC % (i.e lft / 3) { __LINE__, 2100, no_percent, no_ttl, no_min, no_max, 700 }, - // No modifiers, RFC % < RFC minium 600 + // No modifiers, RFC % < RFC minimum 600 { __LINE__, 1500, no_percent, no_ttl, no_min, no_max, 600 }, // RFC % < specified minimum @@ -764,7 +764,7 @@ TEST_F(NCRGenerator4Test, calculateDdnsTtlThroughQueueNcr) { // Explicit ttl wins over specified minimum { __LINE__, 2100, no_percent, 900, 1000, no_max, 900 }, - // Explicit ttl wins over specified maxiumum + // Explicit ttl wins over specified maximum { __LINE__, 2100, no_percent, 900, no_min, 800, 900 }, // Specified percent > RFC minimum diff --git a/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc b/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc index 3128867206..c67603dacc 100644 --- a/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc @@ -197,7 +197,7 @@ public: } } - // Verifies invalid permatations of ddns-ttl-percent, ddns-ttl, + // Verifies invalid permutations of ddns-ttl-percent, ddns-ttl, // ddns-ttl-min, and ddns-ttl-max values for SharedNetwork. template<typename ParserType> void invalidDdnsTtlParmatersTest() { diff --git a/src/lib/util/encode/encode.h b/src/lib/util/encode/encode.h index 5365f4239c..0626674376 100644 --- a/src/lib/util/encode/encode.h +++ b/src/lib/util/encode/encode.h @@ -128,16 +128,16 @@ public: return (max_pad_); } - /// @brief Get the maxium index value of the digit set + /// @brief Get the maximum index value of the digit set /// - /// @return Maxium index value of the digit set + /// @return Maximum index value of the digit set size_t getMaxBitsToDigit() { return (max_bits_to_digit_); } - /// @brief Get the maxium index value of the algorithm bit table + /// @brief Get the maximum index value of the algorithm bit table /// - /// @return Maxium index value of the algorithm bit table + /// @return Maximum index value of the algorithm bit table size_t getMaxDigitToBits() { return (max_digit_to_bits_); } @@ -179,10 +179,10 @@ protected: /// @brief Indicates whether or not the algorithm's digit set is case-sensitive bool case_sensitive_; - /// @brief Maxium index value of the digit set + /// @brief Maximum index value of the digit set size_t max_bits_to_digit_; - /// @brief Maxium index value of the algorithm bit table + /// @brief Maximum index value of the algorithm bit table size_t max_digit_to_bits_; }; diff --git a/src/lib/util/str.h b/src/lib/util/str.h index d048f0181d..4e817d5023 100644 --- a/src/lib/util/str.h +++ b/src/lib/util/str.h @@ -289,7 +289,7 @@ dumpAsHex(const uint8_t* data, size_t length); /// @brief Converts a double to a string with given precision /// /// @param val double to convert -/// @param precision number of maxium number decimal places to output +/// @param precision number of maximum number decimal places to output /// @return string representation of val std::string dumpDouble(double val, size_t precision = 5); |