]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1508] cosmetic change: fix typographical errors
authorAndrei Pavel <andrei@isc.org>
Sat, 28 Nov 2020 10:04:50 +0000 (12:04 +0200)
committerAndrei Pavel <andrei@isc.org>
Wed, 9 Dec 2020 18:01:30 +0000 (20:01 +0200)
src/bin/perfdhcp/test_control.cc
src/hooks/dhcp/user_chk/pkt_send_co.cc
src/lib/dhcp/option.h

index a4cca3d85a3f0514765ea60a9de0d4f990b61df8..2bf9e5d6ea7340edc6507f85f995dbba3bd1002e 100644 (file)
@@ -993,7 +993,7 @@ void
 TestControl::registerOptionFactories6() const {
     static bool factories_registered = false;
     if (!factories_registered) {
-        // D60_ELAPSED_TIME
+        // D6O_ELAPSED_TIME
         LibDHCP::OptionFactoryRegister(Option::V6,
                                        D6O_ELAPSED_TIME,
                                        &TestControl::factoryElapsedTime6);
@@ -1162,6 +1162,7 @@ TestControl::sendDiscover4(const bool preload /*= false*/) {
     pkt4->addOption(Option::factory(Option::V4,
                                     DHO_DHCP_PARAMETER_REQUEST_LIST));
 
+
     // Set client's and server's ports as well as server's address,
     // and local (relay) address.
     setDefaults4(pkt4);
@@ -1671,6 +1672,7 @@ TestControl::sendSolicit6(const bool preload /*= false*/) {
     pkt6->addOption(Option::factory(Option::V6, D6O_CLIENTID, duid));
     pkt6->addOption(Option::factory(Option::V6, D6O_ORO));
 
+
     // Depending on the lease-type option specified, we should request
     // IPv6 address (with IA_NA) or IPv6 prefix (IA_PD) or both.
 
@@ -1812,7 +1814,7 @@ TestControl::setDefaults6(const Pkt6Ptr& pkt) {
 
 void
 TestControl::addExtraOpts(const Pkt4Ptr& pkt) {
-    // All all extra options that the user may have specified
+    // Add all extra options that the user may have specified.
     const dhcp::OptionCollection& extra_opts = options_.getExtraOpts();
     for (auto entry : extra_opts) {
         pkt->addOption(entry.second);
@@ -1821,7 +1823,7 @@ TestControl::addExtraOpts(const Pkt4Ptr& pkt) {
 
 void
 TestControl::addExtraOpts(const Pkt6Ptr& pkt) {
-    // All all extra options that the user may have specified
+    // Add all extra options that the user may have specified.
     const dhcp::OptionCollection& extra_opts = options_.getExtraOpts();
     for (auto entry : extra_opts) {
         pkt->addOption(entry.second);
index 0b106def1dacbc5612ae19ad4d5df69fe34d047a..740bc4b6c33709945397d4e55172ad78a16b6711 100644 (file)
@@ -483,7 +483,7 @@ std::string getAddrStrIA_PD(OptionPtr options) {
     // Get the prefix option the IA_PD option.
     options = ia->getOption(D6O_IAPREFIX);
     if (!options) {
-        isc_throw(isc::BadValue, "D60_IAPREFIX option is missing");
+        isc_throw(isc::BadValue, "D6O_IAPREFIX option is missing");
     }
 
     boost::shared_ptr<Option6IAPrefix> addr_option;
index 3b8c4c4e2c7280ff2d5c7fa8256fdd8b4a8e3ada..e79a651698506d358160d7f55503d57d9d7e3d46 100644 (file)
@@ -374,21 +374,21 @@ public:
     /// @return uint32_t value stored on first four bytes
     uint32_t getUint32() const;
 
-    /// @brief Sets content of this option to singe uint8 value.
+    /// @brief Sets content of this option to a single uint8 value.
     ///
     /// Option it resized appropriately (to length of 1 octet).
     ///
     /// @param value value to be set
     void setUint8(uint8_t value);
 
-    /// @brief Sets content of this option to singe uint16 value.
+    /// @brief Sets content of this option to a single uint16 value.
     ///
     /// Option it resized appropriately (to length of 2 octets).
     ///
     /// @param value value to be set
     void setUint16(uint16_t value);
 
-    /// @brief Sets content of this option to singe uint32 value.
+    /// @brief Sets content of this option to a single uint32 value.
     ///
     /// Option it resized appropriately (to length of 4 octets).
     ///