}
// 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);
// 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
}
} 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));
}
} 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));
}
/// @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.
/// @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,