EXPECT_EQ(RRClass::ANY().getCode(), zone->getClass().getCode());
// Now, let's check that the existing Zone object can be
- // overriden with a new one.
+ // overridden with a new one.
msg.setZone(Name("foo.example.com"), RRClass::NONE());
zone = msg.getZone();
EXPECT_TRUE(zone);
/// @brief Verifies that host specific options override subnet specific
/// options.
///
- /// Overriden options are requested with Option Request option.
+ /// Overridden options are requested with Option Request option.
///
/// @param msg_type DHCPv6 message type to be sent to the server. If the
/// message type is Renew or Rebind, the 4-way exchange is made prior to
/// The method copies the input buffer and options contents
/// to the output buffer. The input buffer must contain whole
/// initial packet data. Parts of this data will be
- /// overriden by options data specified in an options
+ /// overridden by options data specified in an options
/// collection. Such options must have their offsets within
/// a packet specified (see \ref LocalizedOption to find out
/// how to specify options offset).
///
/// This method provides a means to open a fallback socket and bind it
/// to a given IPv4 address and UDP port. This function may be used by the
- /// derived classes to create a fallback socket. It can be overriden
+ /// derived classes to create a fallback socket. It can be overridden
/// in the derived classes if it happens to be insufficient on some
/// environments.
///
struct bpf_insn loopback_ip_udp_filter [] = {
// Make sure this is an IP packet. The pseudo header comprises a 4-byte
// long value identifying the address family, which should be set to
- // AF_INET. The default value used here (0xFFFFFFFF) must be overriden
+ // AF_INET. The default value used here (0xFFFFFFFF) must be overridden
// with htonl(AF_INET) from within the openSocket function.
// #0
BPF_STMT(BPF_LD + BPF_W + BPF_ABS, 0),
}
// Try to override the default binary buffer.
ASSERT_NO_THROW(option->writeBinary(buf_in));
- // And check that it has been actually overriden.
+ // And check that it has been actually overridden.
ASSERT_NO_THROW(buf = option->readBinary());
ASSERT_EQ(buf_in.size(), buf.size());
EXPECT_TRUE(std::equal(buf_in.begin(), buf_in.end(), buf.begin()));
// The purpose of this test is to verify that an option comprising
// single boolean data field can be created and that its default
-// value can be overriden by a new value.
+// value can be overridden by a new value.
TEST_F(OptionCustomTest, setBooleanData) {
OptionDefinition opt_def("OPTION_FOO", 1000, "boolean");
EXPECT_FALSE(value);
// Check that we can override the default value.
ASSERT_NO_THROW(option->writeBoolean(true));
- // Finally, check that it has been actually overriden.
+ // Finally, check that it has been actually overridden.
ASSERT_NO_THROW(value = option->readBoolean());
EXPECT_TRUE(value);
}
/// The purpose of this test is to verify that the data field value
-/// can be overriden by a new value.
+/// can be overridden by a new value.
TEST_F(OptionCustomTest, setUint32Data) {
// Create a definition of an option that holds single
// uint32 value.
// The purpose of this test is to verify that an option comprising
// single IPv4 address can be created and that this address can
-// be overriden by a new value.
+// be overridden by a new value.
TEST_F(OptionCustomTest, setIpv4AddressData) {
OptionDefinition opt_def("OPTION_FOO", 232, "ipv4-address");
// The purpose of this test is to verify that an option comprising
// single IPv6 address can be created and that this address can
-// be overriden by a new value.
+// be overridden by a new value.
TEST_F(OptionCustomTest, setIpv6AddressData) {
OptionDefinition opt_def("OPTION_FOO", 1000, "ipv6-address");
}
// The purpose of this test is to verify that an option comprising
-// a prefix can be created and that the prefix can be overriden by
+// a prefix can be created and that the prefix can be overridden by
// a new value.
TEST_F(OptionCustomTest, setPrefixData) {
OptionDefinition opt_def("option-foo", 1000, "ipv6-prefix");
}
// The purpose of this test is to verify that an option comprising
-// a single PSID can be created and that the PSID can be overriden
+// a single PSID can be created and that the PSID can be overridden
// by a new value.
TEST_F(OptionCustomTest, setPsidData) {
OptionDefinition opt_def("option-foo", 1000, "psid");
/// The purpose of this test is to verify that an option comprising
/// a default FQDN value can be created and that this value can be
-/// overriden after the option has been created.
+/// overridden after the option has been created.
TEST_F(OptionCustomTest, setFqdnData) {
OptionDefinition opt_def("OPTION_FOO", 1000, "fqdn");
EXPECT_EQ(".", fqdn);
// Try override the default FQDN value.
ASSERT_NO_THROW(option->writeFqdn("example.com"));
- // Check that the value has been actually overriden.
+ // Check that the value has been actually overridden.
ASSERT_NO_THROW(fqdn = option->readFqdn());
EXPECT_EQ("example.com.", fqdn);
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_PREFERENCE, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(111, opt->getValue());
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_PREFERENCE, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(-111, opt->getValue());
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_ELAPSED_TIME, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(0x0102, opt->getValue());
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_ELAPSED_TIME, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(-20100, opt->getValue());
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_CLT_TIME, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(0x01020304, opt->getValue());
}
EXPECT_EQ(Option::V6, opt->getUniverse());
EXPECT_EQ(D6O_CLT_TIME, opt->getType());
- // Check if the value has been overriden.
+ // Check if the value has been overridden.
EXPECT_EQ(-125000, opt->getValue());
}
}
// The purpose of this test is to verify that the vendor-space flag
-// can be overriden.
+// can be overridden.
TEST(OptionSpaceTest, setVendorSpace) {
OptionSpace space("isc", true);
EXPECT_EQ("isc", space.getName());
EXPECT_EQ(optv6_value, optv6->getValue());
}
-// This test verifies that the current option value can be overriden
+// This test verifies that the current option value can be overridden
// with new value, using setValue method.
TEST_F(OptionStringTest, setValue) {
// Create an instance of the option and set some initial value.
/// adding duplicated hosts to the collection, assuming that processed
/// rows are primarily ordered by host id column.
///
- /// This method must be overriden in the derived classes to also
+ /// This method must be overridden in the derived classes to also
/// retrieve IPv6 reservations and DHCP options associated with a host.
///
/// @param [out] hosts Collection of hosts to which a new host created
/// @brief Parses a single entry for host reservation.
///
- /// This method is called by @ref parse and it can be overriden in the
+ /// This method is called by @ref parse and it can be overridden in the
/// derived classes to provide class specific parsing logic.
///
/// @param subnet_id Identifier of the subnet that the host is
/// @brief Parses a list of host identifiers.
///
- /// This method is called by @ref parse and it can be overriden in the
+ /// This method is called by @ref parse and it can be overridden in the
/// derived classes to provide class specific parsing logic.
///
/// @param ids_list Data element pointing to an ordered list of host
/// adding duplicated hosts to the collection, assuming that processed
/// rows are primarily ordered by host id column.
///
- /// This method must be overriden in the derived classes to also
+ /// This method must be overridden in the derived classes to also
/// retrieve IPv6 reservations and DHCP options associated with a host.
///
/// @param [out] hosts Collection of hosts to which a new host created
/// @brief Structure holding values of parameters with which the
/// @c reclaimExpiredLeases was called.
///
- /// These values are overriden on subsequent calls to this method.
+ /// These values are overridden on subsequent calls to this method.
RecordedParams reclaim_params_;
/// @brief Value of the parameter with which the @c deleteReclaimedLeases
}
# PID file path is by default <kea-install-dir>/var/kea, but can be
-# overriden by the environmental variable.
+# overridden by the environmental variable.
PID_FILE_PATH=@localstatedir@/@PACKAGE@/
if [ ! -z ${KEA_PIDFILE_DIR} ]; then
PID_FILE_PATH="${KEA_PIDFILE_DIR}"