]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2434] fix typos
authorAndrei Pavel <andrei@isc.org>
Fri, 22 Jul 2022 11:44:36 +0000 (14:44 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 22 Jul 2022 11:44:36 +0000 (14:44 +0300)
ChangeLog
doc/sphinx/arm/hooks-limits.rst
src/bin/admin/tests/pgsql_tests.sh.in
src/lib/dhcp/dhcp6.h
src/lib/dhcp/iface_mgr.h
src/lib/dhcp/iface_mgr_error_handler.h
src/lib/dhcp/tests/option_int_unittest.cc
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc

index add986cd9b801b6dd6d3cc473360040404c1ced3..8eb73e2909803eb76a1d2dc52382e6b1dc4fd7b0 100644 (file)
--- 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
index ecab087a5c62f8cdac94250e4a201cc48aaa64af..25cf91602f60b271c79a3de8388e1d008606cb65 100644 (file)
@@ -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
index 81a656e121b038e999e4038aa7ca7bbaee301d66..fb776e668e7987527693c40fb75da5f58ada59dc 100644 (file)
@@ -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}"
index be7ef0aba8085ad2cd241171789f8494e324480a..cf9f376ef8a25466dbc8e11995c722ac22a893fc 100644 (file)
@@ -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,
index 1e52bfdb9e4edade587167c57a8e30e8b03776e9..c0ee4f030810a2d725e88a6d5f63d45c6d4da999 100644 (file)
@@ -138,12 +138,9 @@ public:
     /// @todo: Add SocketCollectionConstIter type
     typedef std::list<SocketInfo> SocketCollection;
 
-    /// @brief A type definition for a list of error messages
+    /// @brief Type definition for a list of error messages
     using ErrorBuffer = std::vector<std::string>;
 
-    /// @brief A smart pointer type for @ref ErrorBuffer
-    using ErrorBufferPtr = std::shared_ptr<ErrorBuffer>;
-
     /// @brief Iface constructor.
     ///
     /// Creates Iface object that represents network interface.
@@ -477,7 +474,7 @@ private:
     /// See @c Iface manager description for details.
     std::vector<uint8_t> 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
index 5d97a21db494e26c43389142caf3aa01b3ad2814..9570af16db16b9927888860e813d98170ed96d38 100644 (file)
@@ -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) \
 { \
index 439c1fe09d70d9017538aedc413dcc722200cb97..fd82ae53feae076c50c44714345fbe465f6ba86a 100644 (file)
@@ -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
index 6fa8dc8669b3efbbaf2d96512e4549d96bc34498..0246797215f3713f58e5068d1d8f426cf6730dba 100644 (file)
@@ -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
index abc26da151e2eff85232d1cd5f8475c838fe3523..5344a4b1cc853d33cda1b32fb77f89fde11ee3ba 100644 (file)
@@ -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;