Subnet4Ptr subnet = ex.getContext()->subnet_;
if (subnet) {
- // Begin by the shared-network
- SharedNetwork4Ptr network;
- subnet->getSharedNetwork(network);
- if (network) {
- const ClientClasses& to_add = network->getRequiredClasses();
- for (auto const& cclass : to_add) {
- classes.insert(cclass);
- }
- }
-
- // Followed by the subnet
- const ClientClasses& to_add = subnet->getRequiredClasses();
- for (auto const& cclass : to_add) {
- classes.insert(cclass);
- }
+ // host reservation???
- // And finish by the pool
+ // Begin by the pool
Pkt4Ptr resp = ex.getResponse();
IOAddress addr = IOAddress::IPV4_ZERO_ADDRESS();
if (resp) {
}
}
- // host reservation???
+ // Followed by the subnet
+ const ClientClasses& to_add = subnet->getRequiredClasses();
+ for (auto const& cclass : to_add) {
+ classes.insert(cclass);
+ }
+
+ // And finish by the shared-network
+ SharedNetwork4Ptr network;
+ subnet->getSharedNetwork(network);
+ if (network) {
+ const ClientClasses& net_to_add = network->getRequiredClasses();
+ for (auto const& cclass : net_to_add) {
+ classes.insert(cclass);
+ }
+ }
}
// Run match expressions
Subnet6Ptr subnet = ctx.subnet_;
if (subnet) {
- // Begin by the shared-network
- SharedNetwork6Ptr network;
- subnet->getSharedNetwork(network);
- if (network) {
- const ClientClasses& to_add = network->getRequiredClasses();
- for (auto const& cclass : to_add) {
- classes.insert(cclass);
- }
- }
-
- // Followed by the subnet
- const ClientClasses& to_add = subnet->getRequiredClasses();
- for (auto const& cclass : to_add) {
- classes.insert(cclass);
- }
+ // host reservation???
- // And finish by pools
+ // Begin by pools
for (auto const& resource : ctx.allocated_resources_) {
PoolPtr pool =
ctx.subnet_->getPool(resource.getPrefixLength() == 128 ?
}
}
- // host reservation???
+ // Followed by the subnet
+ const ClientClasses& to_add = subnet->getRequiredClasses();
+ for (auto const& cclass : to_add) {
+ classes.insert(cclass);
+ }
+
+ // And finish by the shared-network
+ SharedNetwork6Ptr network;
+ subnet->getSharedNetwork(network);
+ if (network) {
+ const ClientClasses& net_to_add = network->getRequiredClasses();
+ for (auto const& cclass : net_to_add) {
+ classes.insert(cclass);
+ }
+ }
}
// Run match expressions