// Skip it
continue;
}
+
if (ccdef->getCfgOption()->empty()) {
// Skip classes which don't configure options
continue;
}
+
co_list.push_back(ccdef->getCfgOption());
}
// Let's create a simplified client context here.
AllocEngine::ClientContext6 ctx;
initContext(solicit, ctx);
- setReservedClientClasses(solicit, ctx);
Pkt6Ptr response(new Pkt6(DHCPV6_ADVERTISE, solicit->getTransid()));
processClientFqdn(solicit, response, ctx);
assignLeases(solicit, response, ctx);
+ setReservedClientClasses(solicit, ctx);
+
copyClientOptions(solicit, response);
CfgOptionList co_list;
buildCfgOptionList(solicit, ctx, co_list);
// Let's create a simplified client context here.
AllocEngine::ClientContext6 ctx;
initContext(request, ctx);
- setReservedClientClasses(request, ctx);
Pkt6Ptr reply(new Pkt6(DHCPV6_REPLY, request->getTransid()));
processClientFqdn(request, reply, ctx);
assignLeases(request, reply, ctx);
+ setReservedClientClasses(request, ctx);
+
copyClientOptions(request, reply);
CfgOptionList co_list;
buildCfgOptionList(request, ctx, co_list);
// Let's create a simplified client context here.
AllocEngine::ClientContext6 ctx;
initContext(renew, ctx);
- setReservedClientClasses(renew, ctx);
Pkt6Ptr reply(new Pkt6(DHCPV6_REPLY, renew->getTransid()));
processClientFqdn(renew, reply, ctx);
extendLeases(renew, reply, ctx);
+ setReservedClientClasses(renew, ctx);
+
copyClientOptions(renew, reply);
CfgOptionList co_list;
buildCfgOptionList(renew, ctx, co_list);
// Let's create a simplified client context here.
AllocEngine::ClientContext6 ctx;
initContext(rebind, ctx);
- setReservedClientClasses(rebind, ctx);
Pkt6Ptr reply(new Pkt6(DHCPV6_REPLY, rebind->getTransid()));
processClientFqdn(rebind, reply, ctx);
extendLeases(rebind, reply, ctx);
+ setReservedClientClasses(rebind, ctx);
+
copyClientOptions(rebind, reply);
CfgOptionList co_list;
buildCfgOptionList(rebind, ctx, co_list);