From: Andrei Pavel Date: Fri, 22 Jul 2022 11:44:36 +0000 (+0300) Subject: [#2434] fix typos X-Git-Tag: Kea-2.2.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af661183fbebbbc9a69755e157e7d87ee9a5a8d4;p=thirdparty%2Fkea.git [#2434] fix typos --- diff --git a/ChangeLog b/ChangeLog index add986cd9b..8eb73e2909 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2043. [func] andrei The status-get command now shows the status of the sockets being - opened up for listening to DHCP requests and a list of errors for - the sockets that were not created succesfully. + opened for receiving DHCP requests and a list of errors for the + sockets that were not created successfully. (Gitlab #2434) 2042. [func] razvan diff --git a/doc/sphinx/arm/hooks-limits.rst b/doc/sphinx/arm/hooks-limits.rst index ecab087a5c..25cf91602f 100644 --- a/doc/sphinx/arm/hooks-limits.rst +++ b/doc/sphinx/arm/hooks-limits.rst @@ -176,7 +176,7 @@ around it, or the hook library configuration. The same applies to the value of ` limiting. However, that use case is best achieved with rate limiting; it puts less computational strain on Kea, since the action of dropping the request or sending a NAK is decided earlier. -In terms of rate limiting, client classes are evalated at the ``pkt4_receive`` and the +In terms of rate limiting, client classes are evaluated at the ``pkt4_receive`` and the ``pkt6_receive`` callout, respectively, so that rate limits are checked as early as possible in the packet-processing cycle. Thus, only those classes which are assigned to the packet solely via an independent test expression can be used. Classes that depend on host reservations or the special diff --git a/src/bin/admin/tests/pgsql_tests.sh.in b/src/bin/admin/tests/pgsql_tests.sh.in index 81a656e121..fb776e668e 100644 --- a/src/bin/admin/tests/pgsql_tests.sh.in +++ b/src/bin/admin/tests/pgsql_tests.sh.in @@ -742,7 +742,7 @@ pgsql_upgrade_12_to_13_test() { assert_eq 0 "${EXIT_CODE}" "${query}: expected %d, returned %d" assert_str_eq '' "${OUTPUT}" "${query}: expected output %s, returned %s" - # SELECT should finish succesfully and the subnet counter should be 0. + # SELECT should finish successfully and the subnet counter should be 0. query="SELECT leases FROM lease${v}_stat WHERE subnet_id = 1 AND state = 0 LIMIT 1" run_command \ pgsql_execute "${query}" @@ -750,7 +750,7 @@ pgsql_upgrade_12_to_13_test() { assert_str_eq '0' "${OUTPUT}" "${query}: expected output %s, returned %s" if test "${json_supported}" = 't'; then - # SELECT should finish succesfully and the client class counter should be 0. + # SELECT should finish successfully and the client class counter should be 0. query="SELECT leases FROM lease${v}_stat_by_client_class WHERE client_class = 'foo' LIMIT 1" run_command \ pgsql_execute "${query}" diff --git a/src/lib/dhcp/dhcp6.h b/src/lib/dhcp/dhcp6.h index be7ef0aba8..cf9f376ef8 100644 --- a/src/lib/dhcp/dhcp6.h +++ b/src/lib/dhcp/dhcp6.h @@ -229,7 +229,7 @@ enum DHCPv6MessageType { DHCPV6_DHCPV4_RESPONSE = 21, /* RFC 7653 */ DHCPV6_ACTIVELEASEQUERY = 22, - HCPV6_STARTTLS = 23, + DHCPV6_STARTTLS = 23, /* RFC 8156 */ DHCPV6_BNDUPD = 24, DHCPV6_BNDREPLY = 25, diff --git a/src/lib/dhcp/iface_mgr.h b/src/lib/dhcp/iface_mgr.h index 1e52bfdb9e..c0ee4f0308 100644 --- a/src/lib/dhcp/iface_mgr.h +++ b/src/lib/dhcp/iface_mgr.h @@ -138,12 +138,9 @@ public: /// @todo: Add SocketCollectionConstIter type typedef std::list SocketCollection; - /// @brief A type definition for a list of error messages + /// @brief Type definition for a list of error messages using ErrorBuffer = std::vector; - /// @brief A smart pointer type for @ref ErrorBuffer - using ErrorBufferPtr = std::shared_ptr; - /// @brief Iface constructor. /// /// Creates Iface object that represents network interface. @@ -477,7 +474,7 @@ private: /// See @c Iface manager description for details. std::vector read_buffer_; - /// @brief List of errors that occured since the last attempt to open sockets + /// @brief List of errors that occurred since the last attempt to open sockets /// /// This list needs to always have a consistent view of the errors. They should all belong to /// the same session of socket opening i.e. the same call to openSockets[46]. This is currently diff --git a/src/lib/dhcp/iface_mgr_error_handler.h b/src/lib/dhcp/iface_mgr_error_handler.h index 5d97a21db4..9570af16db 100644 --- a/src/lib/dhcp/iface_mgr_error_handler.h +++ b/src/lib/dhcp/iface_mgr_error_handler.h @@ -29,7 +29,7 @@ /// @param ex_type Exception to be thrown if error_handler is NULL. /// @param handler Error handler function to be called or NULL to indicate /// that exception should be thrown instead. -/// @param iface Pointer to the interafce for which the error is logged. Can be null. +/// @param iface Pointer to the interface for which the error is logged. Can be null. /// @param stream stream object holding an error string. #define IFACEMGR_ERROR(ex_type, handler, iface, stream) \ { \ diff --git a/src/lib/dhcp/tests/option_int_unittest.cc b/src/lib/dhcp/tests/option_int_unittest.cc index 439c1fe09d..fd82ae53fe 100644 --- a/src/lib/dhcp/tests/option_int_unittest.cc +++ b/src/lib/dhcp/tests/option_int_unittest.cc @@ -384,7 +384,7 @@ TEST_F(OptionIntTest, packSuboptions4) { opt->addOption(sub1); opt->addOption(sub2); - // Prepare reference data: option + suoptions in wire format. + // Prepare reference data: option + suboptions in wire format. uint8_t expected[] = { TEST_OPT_CODE, 15, // option header 0x01, 0x02, // data, uint16_t value = 0x0102 diff --git a/src/lib/dhcpsrv/dhcpsrv_messages.mes b/src/lib/dhcpsrv/dhcpsrv_messages.mes index 6fa8dc8669..0246797215 100644 --- a/src/lib/dhcpsrv/dhcpsrv_messages.mes +++ b/src/lib/dhcpsrv/dhcpsrv_messages.mes @@ -1113,7 +1113,7 @@ the specified relay address. % DHCPSRV_SUBNET4_SELECT_NO_USABLE_ADDRESS No subnet selected because no suitable address to use for subnet selection was found. A debug message issued when the server was find a suitable address to use for -susubnet selection. +subnet selection. % DHCPSRV_SUBNET4_SELECT_NO_RAI_OPTIONS No RAI options found to use for subnet selection. A debug message issued by the server when the client query does not include RAI diff --git a/src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc index abc26da151..5344a4b1cc 100644 --- a/src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc +++ b/src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc @@ -504,7 +504,7 @@ TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) { // Iterate over the invalid scenarios. for (auto scenario : invalid_scenarios) { - // Cosntruct the lease and context. + // Construct the lease and context. lease = leaseFactory(Lease::TYPE_V4); ElementPtr ctx; ASSERT_NO_THROW(ctx = Element::fromJSON(scenario.ctx_json_)) @@ -547,7 +547,7 @@ TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) { // Iterate over the scenarios. for (auto scenario : valid_scenarios) { - // Cosntruct the lease and context. + // Construct the lease and context. lease = leaseFactory(Lease::TYPE_V4); if (!scenario.ctx_json_.empty()) { ElementPtr ctx;