information. The second argument includes all classes to which the
packet has been assigned.
-% DHCP4_CLASS_UNCONFIGURED %1: client packet belongs an unconfigured class: %2
+% DHCP4_CLASS_UNCONFIGURED %1: client packet belongs to an unconfigured class: %2
This debug message informs that incoming packet belongs to a class
which cannot be found in the configuration. Either a hook written
before the classification was added to Kea is used, or class naming is
srv.classifyPacket(query2);
srv.classifyPacket(query3);
- // Packets at the exception of the second should be in the router class
+ // Packets with the exception of the second should be in the router class
EXPECT_TRUE(query1->inClass("router"));
EXPECT_FALSE(query2->inClass("router"));
EXPECT_TRUE(query3->inClass("router"));
OptionPtr opt1 = response1->getOption(DHO_IP_FORWARDING);
EXPECT_TRUE(opt1);
- // But only for the first exchange: second was not classified
+ // But only for the first query: second was not classified
OptionPtr opt2 = response2->getOption(DHO_IP_FORWARDING);
EXPECT_FALSE(opt2);
- // But only for the first exchange: third has no PRL
+ // But only for the first query: third has no PRL
OptionPtr opt3 = response3->getOption(DHO_IP_FORWARDING);
EXPECT_FALSE(opt3);
}
// Process the query
Pkt4Ptr response = srv.processDiscover(query);
- // A processing should add an ip-forwarding option
+ // Processing should add an ip-forwarding option
OptionPtr opt = response->getOption(DHO_IP_FORWARDING);
ASSERT_TRUE(opt);
ASSERT_GT(opt->len(), opt->getHeaderLen());
// Process the query
Pkt4Ptr response = srv.processDiscover(query);
- // A processing should add an ip-forwarding option
+ // Processing should add an ip-forwarding option
OptionPtr opt = response->getOption(DHO_IP_FORWARDING);
ASSERT_TRUE(opt);
ASSERT_GT(opt->len(), opt->getHeaderLen());
// The second subnet does not play any role here. The client's
// IP address belongs to the first subnet, so only that first
- // subnet it being tested.
+ // subnet is being tested.
string config = "{ \"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
This debug message informs that incoming packet has been assigned to specified
class or classes.
-% DHCP6_CLASS_UNCONFIGURED client packet belongs an unconfigured class: %1
+% DHCP6_CLASS_UNCONFIGURED client packet belongs to an unconfigured class: %1
This debug message informs that incoming packet belongs to a class
which cannot be found in the configuration. Either a hook written
before the classification was added to Kea is used, or class naming is
srv.classifyPacket(query2);
srv.classifyPacket(query3);
- // Packets at the exception of the second should be in the router class
+ // Packets with the exception of the second should be in the router class
EXPECT_TRUE(query1->inClass("router"));
EXPECT_FALSE(query2->inClass("router"));
EXPECT_TRUE(query3->inClass("router"));
OptionPtr opt1 = response1->getOption(2345);
EXPECT_TRUE(opt1);
- // But only for the first exchange: second was not classified
+ // But only for the first query: second was not classified
OptionPtr opt2 = response2->getOption(2345);
EXPECT_FALSE(opt2);
- // But only for the first exchange: third has no ORO
+ // But only for the first query: third has no ORO
OptionPtr opt3 = response3->getOption(2345);
EXPECT_FALSE(opt3);
}
query->setIface("eth1");
query->addOption(generateIA(D6O_IA_NA, 123, 1500, 3000));
- // Create and add a ORO option to the query
+ // Create and add an ORO option to the query
OptionUint16ArrayPtr oro(new OptionUint16Array(Option::V6, D6O_ORO));
ASSERT_TRUE(oro);
oro->addValue(2345);
// Process the query
Pkt6Ptr response = srv.processSolicit(query);
- // A processing should add an ip-forwarding option
+ // Processing should add an ip-forwarding option
OptionPtr opt = response->getOption(2345);
ASSERT_TRUE(opt);
ASSERT_GT(opt->len(), opt->getHeaderLen());
query->setIface("eth1");
query->addOption(generateIA(D6O_IA_NA, 123, 1500, 3000));
- // Create and add a ORO option to the query
+ // Create and add an ORO option to the query
OptionUint16ArrayPtr oro(new OptionUint16Array(Option::V6, D6O_ORO));
ASSERT_TRUE(oro);
oro->addValue(2345);
// Process the query
Pkt6Ptr response = srv.processSolicit(query);
- // A processing should add an ip-forwarding option
+ // Processing should add an ip-forwarding option
OptionPtr opt = response->getOption(2345);
ASSERT_TRUE(opt);
ASSERT_GT(opt->len(), opt->getHeaderLen());
// The second subnet does not play any role here. The client's
// IP address belongs to the first subnet, so only that first
- // subnet it being tested.
+ // subnet is being tested.
string config = "{ \"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
"},"
/// @brief Indicates the container is empty
///
- /// @return true when the confainer is empty
+ /// @return true when the container is empty
bool empty() const {
return (option_space_map_.empty());
}
}
// Here globally defined options were merged to the subnet specific
- // options but it is no longer the case (they have a different
+ // options but this is no longer the case (they have a different
// and not consecutive priority).
// Copy options to the subnet configuration.