From: Andrei Pavel Date: Sat, 28 Nov 2020 10:04:50 +0000 (+0200) Subject: [#1508] cosmetic change: fix typographical errors X-Git-Tag: Kea-1.9.3~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c453006aba09568eaceefbdc6adec5fe88ec98b;p=thirdparty%2Fkea.git [#1508] cosmetic change: fix typographical errors --- diff --git a/src/bin/perfdhcp/test_control.cc b/src/bin/perfdhcp/test_control.cc index a4cca3d85a..2bf9e5d6ea 100644 --- a/src/bin/perfdhcp/test_control.cc +++ b/src/bin/perfdhcp/test_control.cc @@ -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); diff --git a/src/hooks/dhcp/user_chk/pkt_send_co.cc b/src/hooks/dhcp/user_chk/pkt_send_co.cc index 0b106def1d..740bc4b6c3 100644 --- a/src/hooks/dhcp/user_chk/pkt_send_co.cc +++ b/src/hooks/dhcp/user_chk/pkt_send_co.cc @@ -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 addr_option; diff --git a/src/lib/dhcp/option.h b/src/lib/dhcp/option.h index 3b8c4c4e2c..e79a651698 100644 --- a/src/lib/dhcp/option.h +++ b/src/lib/dhcp/option.h @@ -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). ///