Pkt4Ptr response;
handle.getArgument("response4", response);
- Subnet4Ptr subnet;
+ ConstSubnet4Ptr subnet;
handle.getArgument("subnet4", subnet);
try {
Pkt6Ptr response;
handle.getArgument("response6", response);
- Subnet6Ptr subnet;
+ ConstSubnet6Ptr subnet;
handle.getArgument("subnet6", subnet);
try {
}
void
-PerfMonMgr::processPktEventStack(PktPtr query, PktPtr response, SubnetPtr subnet) {
+PerfMonMgr::processPktEventStack(PktPtr query, PktPtr response,
+ ConstSubnetPtr subnet) {
if (!query) {
isc_throw(Unexpected, "PerfMonMgr::processPktEventStack - query is empty!");
}
/// subnet id.
void processPktEventStack(isc::dhcp::PktPtr query,
isc::dhcp::PktPtr response,
- const isc::dhcp::SubnetPtr subnet);
+ const isc::dhcp::ConstSubnetPtr subnet);
/// @brief Adds a duration sample to a MonitoredDuration.
///
void
RunScriptImpl::extractSubnet4(ProcessEnvVars& vars,
- const Subnet4Ptr subnet4,
+ const ConstSubnet4Ptr subnet4,
const string& prefix,
const string& suffix) {
if (subnet4) {
void
RunScriptImpl::extractSubnet6(ProcessEnvVars& vars,
- const Subnet6Ptr subnet6,
+ const ConstSubnet6Ptr subnet6,
const string& prefix,
const string& suffix) {
if (subnet6) {
/// @param prefix The prefix for the name of the environment variable.
/// @param suffix The suffix for the name of the environment variable.
static void extractSubnet4(isc::asiolink::ProcessEnvVars& vars,
- const isc::dhcp::Subnet4Ptr subnet4,
+ const isc::dhcp::ConstSubnet4Ptr subnet4,
const std::string& prefix = "",
const std::string& suffix = "");
/// @param prefix The prefix for the name of the environment variable.
/// @param suffix The suffix for the name of the environment variable.
static void extractSubnet6(isc::asiolink::ProcessEnvVars& vars,
- const isc::dhcp::Subnet6Ptr subnet6,
+ const isc::dhcp::ConstSubnet6Ptr subnet6,
const std::string& prefix = "",
const std::string& suffix = "");
Pkt4Ptr pkt4;
handle.getArgument("query4", pkt4);
RunScriptImpl::extractPkt4(vars, pkt4, "QUERY4");
- Subnet4Ptr subnet4;
+ ConstSubnet4Ptr subnet4;
handle.getArgument("subnet4", subnet4);
RunScriptImpl::extractSubnet4(vars, subnet4, "SUBNET4");
ClientIdPtr clientid;
CalloutHandle handle(getCalloutManager());
Pkt4Ptr pkt4 = generatePkt4();
handle.setArgument("query4", pkt4);
- Subnet4Ptr subnet4 = generateSubnet4();
+ ConstSubnet4Ptr subnet4 = generateSubnet4();
handle.setArgument("subnet4", subnet4);
ClientIdPtr clientid = generateClientId();
handle.setArgument("clientid", clientid);