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