Parcourir la source

spelling: address

Josh Soref il y a 7 ans
Parent
commit
67dbce1310

+ 1 - 1
src/bin/dhcp4/tests/config_parser_unittest.cc

@@ -1112,7 +1112,7 @@ TEST_F(Dhcp4ParserTest, nextServerSubnet) {
 }
 
 // Test checks several negative scenarios for next-server configuration: bogus
-// address, IPv6 adddress and empty string.
+// address, IPv6 address and empty string.
 TEST_F(Dhcp4ParserTest, nextServerNegative) {
     IfaceMgrTestConfig test_config(true);
 

+ 1 - 1
src/bin/perfdhcp/tests/test_control_unittest.cc

@@ -1180,7 +1180,7 @@ TEST_F(TestControlTest, GenerateMacAddress) {
     // Initialize Test Controller.
     NakedTestControl tc;
     uint8_t randomized = 0;
-    // Generate MAC adddress and sanity check its size.
+    // Generate MAC address and sanity check its size.
     std::vector<uint8_t> mac = tc.generateMacAddress(randomized);
     ASSERT_EQ(6, mac.size());
     // Make sure that the generated MAC address belongs to the MAC addresses

+ 2 - 2
src/lib/dhcp/duid_factory.cc

@@ -96,7 +96,7 @@ DUIDFactory::createLLT(const uint16_t htype, const uint32_t time_in,
         }
 
     } else if (htype_out == 0) {
-        // If link layer type unspecified and link layer adddress
+        // If link layer type unspecified and link layer address
         // is specified, use current type or HTYPE_ETHER.
         htype_out = ((htype_current != 0) ? htype_current :
                      static_cast<uint16_t>(HTYPE_ETHER));
@@ -221,7 +221,7 @@ DUIDFactory::createLL(const uint16_t htype,
         }
 
     } else if (htype_out == 0) {
-        // If link layer type unspecified and link layer adddress
+        // If link layer type unspecified and link layer address
         // is specified, use current type or HTYPE_ETHER.
         htype_out = ((htype_current != 0) ? htype_current :
             static_cast<uint16_t>(HTYPE_ETHER));

+ 1 - 1
src/lib/dhcp/tests/iface_mgr_unittest.cc

@@ -281,7 +281,7 @@ public:
     }
 
     /// @brief Checks if the specified interface has a socket bound to a
-    /// specified adddress.
+    /// specified address.
     ///
     /// @param iface_name A name of the interface.
     /// @param addr An address to be checked for binding.

+ 1 - 1
src/lib/dhcpsrv/cfg_hosts.h

@@ -509,7 +509,7 @@ private:
     /// @c Host object.
     template<typename ReturnType, typename Storage>
     ReturnType getHostInternal6(const SubnetID& subnet_id,
-                                const asiolink::IOAddress& adddress) const;
+                                const asiolink::IOAddress& address) const;
 
     template<typename ReturnType>
     ReturnType getHostInternal6(const asiolink::IOAddress& prefix,