]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1917] spelling corrections
authorAndrei Pavel <andrei@isc.org>
Tue, 8 Jun 2021 14:49:23 +0000 (17:49 +0300)
committerTomek Mrugalski <tomek@isc.org>
Thu, 17 Jun 2021 13:09:05 +0000 (13:09 +0000)
31 files changed:
CONTRIBUTING.md
doc/examples/kea4/ha-load-balancing-primary.json
doc/examples/kea4/vivso.json
doc/sphinx/arm/hooks-ha.rst
doc/sphinx/arm/hooks-run-script.rst
doc/sphinx/man/perfdhcp.8.rst
src/bin/admin/tests/dhcpdb_create_1.0.cql
src/bin/d2/d2_cfg_mgr.cc
src/bin/d2/d2_config.h
src/bin/d2/d2_messages.mes
src/bin/dhcp4/dhcp4_hooks.dox
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/dhcp4_test_utils.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/hooks_unittest.cc
src/bin/dhcp4/tests/kea_controller_unittest.cc
src/bin/dhcp6/dhcp6_hooks.dox
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/bin/dhcp6/tests/hooks_unittest.cc
src/bin/keactrl/kea-dhcp4.conf.pre
src/bin/keactrl/kea-dhcp6.conf.pre
src/bin/perfdhcp/command_options.cc
src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
src/lib/asiolink/botan_boost_tls.cc
src/lib/asiolink/tests/tls_unittest.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/pgsql_host_data_source.cc
src/lib/dhcpsrv/tests/alloc_engine_utils.h
src/lib/http/http_thread_pool.h
src/lib/util/state_model.h
src/lib/util/strutil.h

index 0178cc671e05f54b55db6a28a626fae55035097d..0dfacdc7be18981edd2c7c19404f284279770ad7 100644 (file)
@@ -57,7 +57,7 @@ guidelines above as close as possible. They are `.clang-format` and
 want to format code automatically, you will need to have at least one of these
 tools installed. Since by default, these tools look for the closest style file
 located in one of the parent directories or, otherwise, in a default location,
-there are a couple of helpful scripts i.e. `./tools/clang-format.sh` and
+there are a couple of helpful scripts i.e. `./tools/clang-format.sh` and
 `./tools/uncrustify.sh` to assure you that the Kea-owned file is used. They
 accept any number of customized parameters that would be passed to the
 underlying tool followed by any number of files and/or directories. Passing
index 88435a22f24d166eea57f0323c05fa5ae929b895..77845132404147674bc80fe6c63651bf086ff5cd 100644 (file)
@@ -33,7 +33,7 @@
     // There are dedicated examples for each backend. See Section 7.2.2 "Lease
     // Storage" for details.
     "lease-database": {
-        // Memfile is the simplest and easiest backend to use. It's a in-memory
+        // Memfile is the simplest and easiest backend to use. It's an in-memory
         "type": "memfile"
     },
 
index 7f091b6f82072a11c68e931d1a215fc92238b40a..12adc95b25023476e271e75bfa32fa9327e93fa3 100644 (file)
@@ -14,7 +14,7 @@
                 "code": 2,
                 "name": "vlanid",
 // In case of suboption of option 125 space has to start with prefix "vendor-"
-// in this case it's "vendor-" + vendor id from option 60 send by client
+// in this case it's "vendor-" + vendor id from option 60 sent by client
 // 339 is Siemens Industry Inc.
                 "space": "vendor-339",
                 "type": "uint32"
index 3732f70f9da4caabfb5e1cfd86a4a9f2fe791162..04c839e54b18bfe737e92eca644eb7a0bae0c861 100644 (file)
@@ -1507,7 +1507,7 @@ HA+MT operation:
    single-threaded HTTP client processing.
 
 -  ``http-dedicated-listener`` - enables or disables the creation of a
-   dedicated, internal HTTP listener through which the server receive HA
+   dedicated, internal HTTP listener through which the server receives HA
    messages from its peers.  The internal listener replaces the role of
    kea-ctrl-agent traffic, allowing peers to send their HA commands directly
    to each other.  The listener will listen on the peer's ``url``.  When
index 70ad3d82c58245e71159d209289a77c32e58debf..2d748cc927623cfd14cb61b990f1c80e3b08c769 100644 (file)
@@ -293,7 +293,7 @@ leases4_committed
    DELETED_LEASES4_SIZE
 
 If LEASES4_SIZE or DELETED_LEASES4_SIZE are non zero, then each lease
-will have it's own unique identifier as shown below. First index starts
+will have its own unique identifier as shown below. First index starts
 at 0.
 
 ::
@@ -516,7 +516,7 @@ leases6_committed
    DELETED_LEASES6_SIZE
 
 If LEASES6_SIZE or DELETED_LEASES6_SIZE are non zero, then each lease
-will have it's own unique identifier as shown below. First index starts
+will have its own unique identifier as shown below. First index starts
 at 0.
 
 ::
index 3b55b6a4af45fce6cc6433c17cc4f46e64972621..dc3d69dab0f4bef4ae741db19a38d4c0eccfaa6d 100644 (file)
@@ -118,7 +118,7 @@ randomized, and so on.
 
 Perfdhcp can now simulate traffic from multiple subnets by enabling option
 -J and passing path to file that contains v4 or v6 addresses that will be
-used as relayin generated messages. That enable testing of vast numbers
+used as relay in generated messages. That enable testing of vast numbers
 of Kea shared networks. While testing Kea v4 it should be started with
 KEA_TEST_SEND_RESPONSES_TO_SOURCE environment variable to force Kea
 to send generated messages to source address of incoming packet.
index e270b9ab120f6752a4bdb87d72899b8566a5d12e..abd786b452073156e579fd1216cd624b3fbd53ae 100644 (file)
@@ -39,7 +39,7 @@
 -- is initialized to 1.0, then upgraded to 2.0 etc. This may be somewhat
 -- sub-optimal, but it ensues consistency with upgrade scripts. (It is much
 -- easier to maintain init and upgrade scripts if they look the same).
--- Since initialization is done only once, it's performance is not an issue.
+-- Since initialization is done only once, its performance is not an issue.
 
 -- This line starts database initialization to 1.0.
 
index 7d23ecefbf6ea3a261dc0853b5f6c8276e201def..0e70b1b2ed36106a9659f6d4680ad0a924fef5d6 100644 (file)
@@ -103,7 +103,7 @@ D2CfgContext::toElement() const {
     if (!isNull(control_socket_)) {
         d2->set("control-socket", UserContext::toElement(control_socket_));
     }
-    // Set hooks-librairies
+    // Set hooks-libraries
     d2->set("hooks-libraries", hooks_config_.toElement());
     // Set DhcpDdns
     ElementPtr result = Element::createMap();
index d15a39ec3f6f35a7e2f26ccc8b43f53888b3e4da..6820bc5757be1ca2f40bc3d7fd9b1affa1d4b9c5 100644 (file)
@@ -522,7 +522,7 @@ typedef boost::shared_ptr<DnsServerInfoStorage> DnsServerInfoStoragePtr;
 
 /// @brief Represents a DNS domain that is may be updated dynamically.
 /// This class specifies a DNS domain and the list of DNS servers that support
-/// it.  It's primary use is to map a domain to the DNS server(s) responsible
+/// it.  Its primary use is to map a domain to the DNS server(s) responsible
 /// for it.
 /// @todo Currently the name entry for a domain is just an std::string. It
 /// may be worthwhile to change this to a dns::Name for purposes of better
index a606584700a0d0a97227e8b163719eba9a77df64..4b3d47dd0a0828a2766e8b4940f2a1e829044420 100644 (file)
@@ -181,7 +181,7 @@ version of Kea will implement authentication to guard against such attacks.
 
 % DHCP_DDNS_NO_ELIGIBLE_JOBS although there are queued requests, there are pending transactions for each, Queue count: %1  Transaction count: %2
 This is a debug message issued when all of the queued requests represent clients
-for which there is a an update already in progress.  This may occur under
+for which there is an update already in progress.  This may occur under
 normal operations but should be temporary situation.
 
 % DHCP_DDNS_NO_FWD_MATCH_ERROR Request ID %1: the configured list of forward DDNS domains does not contain a match for: %2  The request has been discarded.
index fb7a7f6050500dd3990b8af3238c0f2d8b20058f..940bcbdde46d87fbb2f4e76a0ba0837e8a280897 100644 (file)
@@ -391,7 +391,7 @@ to the end of this list.
    is the parsed JSON structure containing the response generated by
    the command processing.
 
- - <b>Next step status</b>: Not applicable, it's value will be ignored.
+ - <b>Next step status</b>: Not applicable, its value will be ignored.
 
 @section dhcpv4HooksOptionsAccess Accessing DHCPv4 Options within a Packet
 When the server constructs a response message to a client it includes
index bbbb976361e44f796e86e80fd6987ed13fc37f14..376f540ab50247a4b460f13e9e246552d24f4978 100644 (file)
@@ -7328,7 +7328,7 @@ TEST_F(Dhcp4ParserTest, calculateTeeTimesInheritence) {
 
     CfgSubnets4Ptr subnets4 = CfgMgr::instance().getStagingCfg()->getCfgSubnets4();
 
-    // Subnet 100 should use it's own explicit values.
+    // Subnet 100 should use its own explicit values.
     ConstSubnet4Ptr subnet4 = subnets4->getBySubnetId(100);
     ASSERT_TRUE(subnet4);
     EXPECT_FALSE(subnet4->getCalculateTeeTimes());
index 3a4353c6dac152252baf96c8b2e12dad595db24d..b3de3c3e1634abaee72836a4b78f8732614cc7cc 100644 (file)
@@ -750,7 +750,7 @@ Dhcpv4SrvTest::pretendReceivingPkt(NakedDhcpv4Srv& srv, const std::string& confi
     // Let's just use one of the actual captured packets that we have.
     Pkt4Ptr pkt = PktCaptures::captureRelayedDiscover();
 
-    // We just need to tweak it a it, to pretend that it's type is as desired.
+    // We just need to tweak it a it, to pretend that its type is as desired.
     // Note that when receiving a packet, its on-wire form is stored in data_
     // field. Most methods (including setType()) operates on option objects
     // (objects stored in options_ after unpack() is called). Finally, outgoing
index cb9a3e9a431f97f7533776ce87a708d80cdb0ac0..f7c25420cd61ccaee4f7ad5b22773296ab249f64 100644 (file)
@@ -733,7 +733,7 @@ public:
 
     ///@brief Verify that NameChangeRequest holds valid values.
     ///
-    /// Pulls the NCR from the top of the send queue and checks it's content
+    /// Pulls the NCR from the top of the send queue and checks its content
     ///  against a number of expected parameters.
     ///
     /// @param type - expected NCR change type, CHG_ADD or CHG_REMOVE
index f96653339ab236ce079b2dcdaa80c46fb56f64cd..3348283eccb8932b3a381807461092d0f816f383 100644 (file)
@@ -2828,7 +2828,7 @@ TEST_F(LoadUnloadDhcpv4SrvTest, unloadLibraries) {
     ASSERT_TRUE(HooksManager::loadLibraries(libraries));
 
     // Verify that they load functions created the LOAD_MARKER_FILE
-    // and that it's contents are correct: "12" - the first library
+    // and that its contents are correct: "12" - the first library
     // appends "1" to the file, the second appends "2"). Also
     // check that the unload marker file does not yet exist.
     EXPECT_TRUE(checkMarkerFile(LOAD_MARKER_FILE, "12"));
index 55495ef1215b3e56421c7e0d700de7adb81ca47e..86d9d099b51d87b20f3df7a524a1c67ce815e78a 100644 (file)
@@ -461,7 +461,7 @@ TEST_F(JSONFileBackendTest, jsonFile) {
     EXPECT_EQ("192.0.4.0", (*subnet)->get().first.toText());
     EXPECT_EQ(24, (*subnet)->get().second);
 
-    // ... and it's only pool.
+    // ... and its only pool.
     const PoolCollection& pools3 = (*subnet)->getPools(Lease::TYPE_V4);
     EXPECT_EQ("192.0.4.101", pools3.at(0)->getFirstAddress().toText());
     EXPECT_EQ("192.0.4.150", pools3.at(0)->getLastAddress().toText());
index 58c04309b41fe80c514fd7840bc2645798b1b08d..d03540431110c51977eb55c79906aa97758a466b 100644 (file)
@@ -443,7 +443,7 @@ to the end of this list.
    is the parsed JSON structure containing the response generated by
    the command processing.
 
- - <b>Next step status</b>: Not applicable, it's value will be ignored.
+ - <b>Next step status</b>: Not applicable, its value will be ignored.
 
 @section dhcpv6HooksOptionsAccess Accessing DHCPv6 Options within a Packet
 When the server constructs a response message to a client it includes
index d4667e7a7abf7cd212767d17a78cc4914e2d56c5..c0865b73b872df5227034620d60a72bf4e1f3656 100644 (file)
@@ -3090,7 +3090,7 @@ TEST_F(Dhcpv6SrvTest, receiveParseFailedStat) {
     // Let's get a simple SOLICIT...
     Pkt6Ptr pkt = PktCaptures::captureSimpleSolicit();
 
-    // And pretend it's packet is only 3 bytes long.
+    // And pretend its packet is only 3 bytes long.
     pkt->data_.resize(3);
 
     // Check that the tested statistics is initially set to 0
index 8d64e3a6c3922ee3ded0826db64315ac637321ad..de3cdce6a84d57a7661d292838e1e191bcfcc34f 100644 (file)
@@ -5095,7 +5095,7 @@ TEST_F(LoadUnloadDhcpv6SrvTest, unloadLibraries) {
     ASSERT_TRUE(HooksManager::loadLibraries(libraries));
 
     // Verify that they load functions created the LOAD_MARKER_FILE
-    // and that it's contents are correct: "12" - the first library
+    // and that its contents are correct: "12" - the first library
     // appends "1" to the file, the second appends "2"). Also
     // check that the unload marker file does not yet exist.
     EXPECT_TRUE(checkMarkerFile(LOAD_MARKER_FILE, "12"));
index efb57f6748867d09e31018ab3cc04e384a203b11..fc4a8067c3eb999b0ac842d6298c705bd683f339 100644 (file)
@@ -41,7 +41,7 @@
         // "dhcp-socket-type": "udp"
     },
 
-    // Kea support control channel, which is a way to receive management
+    // Kea supports control channel, which is a way to receive management
     // commands while the server is running. This is a Unix domain socket that
     // receives commands formatted in JSON, e.g. config-set (which sets new
     // configuration), config-reload (which tells Kea to reload its
@@ -59,7 +59,7 @@
     // There are dedicated examples for each backend. See Section 7.2.2 "Lease
     // Storage" for details.
     "lease-database": {
-        // Memfile is the simplest and easiest backend to use. It's a in-memory
+        // Memfile is the simplest and easiest backend to use. It's an in-memory
         // C++ database that stores its state in CSV file.
         "type": "memfile",
         "lfc-interval": 3600
index 83dd7088217d42a5fa4b7153c01cd3d38f610e00..e036b50159db565665b675b27d9ace13015bd67b 100644 (file)
@@ -35,7 +35,7 @@
         "interfaces": [ ]
     },
 
-    // Kea support control channel, which is a way to receive management commands
+    // Kea supports control channel, which is a way to receive management commands
     // while the server is running. This is a Unix domain socket that receives
     // commands formatted in JSON, e.g. config-set (which sets new configuration),
     // config-reload (which tells Kea to reload its configuration from file),
@@ -53,6 +53,8 @@
     // There are dedicated examples for each backend. See Section 8.2.2 "Lease
     // Storage" for details.
     "lease-database": {
+        // Memfile is the simplest and easiest backend to use. It's an in-memory
+        // C++ database that stores its state in CSV file.
         "type": "memfile",
         "lfc-interval": 3600
     },
index cb2f79f9f060a6084993f6a18901d796e2364aa3..bd6296fa471b81fc86c16bda91e37e9ff56bdb40 100644 (file)
@@ -870,7 +870,7 @@ void CommandOptions::loadRelayAddr() {
     while (std::getline(infile, line)) {
         cnt++;
         stringstream tmp;
-        tmp << "invalid address or wrong address version in line: "<< cnt;
+        tmp << "invalid address or wrong address version in line: " << cnt;
         check(validateIP(line), tmp.str());
     }
     check(cnt == 0, "file with addresses is empty!");
index 53f2c82d0ad396ddc7912a18ffafde24c7ec2a1c..51ee2c2b5206a8ca94c1e3e76c52a488963f94b5 100644 (file)
@@ -244,7 +244,7 @@ TEST_F(HAMtServiceTest, multiThreadingBasics) {
             EXPECT_TRUE(service->listener_->getThreadIOService()->stopped());
         }
 
-        // Exiting critical section should resume both cllent
+        // Exiting critical section should resume both client
         // and listener.
 
         // Client should be running.
index 7d698cc73bef00ad4cbbe749c7714ba6e949cfb7..12db353b04859654ee3cd0e48c7ef1f541eaa77d 100644 (file)
@@ -131,7 +131,7 @@ public:
     // Pointer to the CA certificate store.
     std::unique_ptr<Botan::Certificate_Store> store_;
 
-    // Use the CA ceertificate store flag.
+    // Use the CA certificate store flag.
     bool use_stores_;
 
     // The certificate chain.
index 8533f5ab374239f120b79a3af9d753a452725ae8..e6ffa8ab8c404ad77a31669232c7dd9ad463eb80 100644 (file)
@@ -1369,7 +1369,7 @@ TEST(TLSTest, selfSigned) {
 // the other peer timeout?
 
 // Test what happens when handshake is forgotten.
-TEST(TLSTest, noHandshakeCloseonError) {
+TEST(TLSTest, noHandshakeCloseOnError) {
     IOService service;
 
     // Server part.
index bbbba6c2cfc789ec5718a41dd606e805f2f7e9a7..56ee062bfd29ae6a5eb3c0e831265ea900d12b5d 100644 (file)
@@ -83,7 +83,7 @@ const uint8_t MAX_IDENTIFIER_TYPE = static_cast<uint8_t>(Host::LAST_IDENTIFIER_T
 class MySqlHostExchange {
 private:
 
-    /// @brief Number of columns returned for SELECT queries send by this class.
+    /// @brief Number of columns returned for SELECT queries sent by this class.
     static const size_t HOST_COLUMNS = 14;
 
 public:
index 1f5164494dd6006a2288589abbdc899524e7bf57..9a8a217e1f35ace7914b7262ba35a1110b3e0f60 100644 (file)
@@ -105,7 +105,7 @@ private:
     static const int DHCP4_SERVER_HOSTNAME_COL = 11;
     static const int DHCP4_BOOT_FILE_NAME_COL = 12;
     static const int AUTH_KEY_COL = 13;
-    /// @brief Number of columns returned for SELECT queries send by this class.
+    /// @brief Number of columns returned for SELECT queries sent by this class.
     static const size_t HOST_COLUMNS = 14;
 
 public:
index e6e1accd00609bb225472f0de312d95c6c84684a..2e4ffbef107e34b99e9a846f140bafaa884522e8 100644 (file)
@@ -416,7 +416,7 @@ public:
     /// can succeed. The invalid hint should be ignored completely.
     ///
     /// @param type Lease type
-    /// @param hint hint (as send by a client)
+    /// @param hint hint (as sent by a client)
     /// @param expected_pd_len (used in validation)
     void allocBogusHint6(Lease::Type type, asiolink::IOAddress hint,
                          uint8_t expected_pd_len);
index 5a04a3d8d73519a609e00cb500497ac598fbc3ed..dddb43be333d9cce2f4b69d5648e8f541fdedcd3 100644 (file)
@@ -33,7 +33,7 @@ public:
     /// @brief Constructor
     ///
     /// @param io_service IOService that will drive the pool's IO. If empty, it
-    /// create it's own instance.
+    /// create its own instance.
     /// @param pool_size Maximum number of threads in the pool.  Currently the
     /// number of threads is fixed at this value.
     /// @param defer_start If true, creation of the threads is deferred until
index da297da95d9258b32156bd7c5c9e518b59d81c96..b915149ca95973c44ecbda52c4bdea64011741ff 100644 (file)
@@ -383,7 +383,7 @@ protected:
     /// This method is used to construct the set of valid events. Each class
     /// within a StateModel derivation hierarchy uses this method to add any
     /// events it defines to the set.  Each derivation's implementation must
-    /// also call it's superclass's implementation.  This allows each class
+    /// also call its superclass's implementation.  This allows each class
     /// within the hierarchy to make contributions to the set of defined
     /// events. Implementations use the method, defineEvent(), to add event
     /// definitions.  An example of the derivation's implementation follows:
@@ -434,7 +434,7 @@ protected:
     /// event set is determined to be invalid this method should throw a
     /// StateModelError.  As with the defineEvents method, each class within
     /// a StateModel derivation hierarchy must supply an implementation
-    /// which calls it's superclass's implementation as well as verifying any
+    /// which calls its superclass's implementation as well as verifying any
     /// events added by the derivation.  Validating an event is accomplished
     /// by simply attempting to fetch an event by its value from the event set.
     /// An example of the derivation's implementation follows:
@@ -460,7 +460,7 @@ protected:
     /// This method is used to construct the set of valid states. Each class
     /// within a StateModel derivation hierarchy uses this method to add any
     /// states it defines to the set.  Each derivation's implementation must
-    /// also call it's superclass's implementation.  This allows each class
+    /// also call its superclass's implementation.  This allows each class
     /// within the hierarchy to make contributions to the set of defined
     /// states. Implementations use the method, defineState(), to add state
     /// definitions.  An example of the derivation's implementation follows:
@@ -515,7 +515,7 @@ protected:
     /// state set is determined to be invalid this method should throw a
     /// StateModelError.  As with the defineStates method, each class within
     /// a StateModel derivation hierarchy must supply an implementation
-    /// which calls it's superclass's implementation as well as verifying any
+    /// which calls its superclass's implementation as well as verifying any
     /// states added by the derivation.  Validating an state is accomplished
     /// by simply attempting to fetch the state by its value from the state set.
     /// An example of the derivation's implementation follows:
index a638244b0c1af17742d50dd21cd4648346a3d7cc..bdb496fdb017e9c01713b265eecb213de5c15257 100644 (file)
@@ -249,7 +249,7 @@ quotedStringToBinary(const std::string& quoted_string);
 /// an exception is thrown.
 ///
 /// \param hex_string Input string.
-/// \param sep character to use a a separator.
+/// \param sep character to use as a separator.
 /// \param binary Vector receiving converted string into binary.
 /// \throw isc::BadValue if the format of the input string is invalid.
 void