// hook library.
ScopedEnableOptionsCopy<Pkt4> query_resp_options_copy(query, rsp);
+ // Pass incoming packet as argument
+ callout_handle->setArgument("query4", query);
+
// Set our response
callout_handle->setArgument("response4", rsp);
- // Also pass the corresponding query packet as argument
- callout_handle->setArgument("query4", query);
-
// Call all installed callouts
HooksManager::callCallouts(Hooks.hook_index_pkt4_send_,
*callout_handle);
// Is this solicit (fake = true) or request (fake = false)
ctx.callout_handle_->setArgument("fake_allocation", ctx.fake_allocation_);
+
+ // The lease that will be assigned to a client
ctx.callout_handle_->setArgument("lease6", lease);
// This is the first callout, so no need to clear any arguments
ctx.callout_handle_->setArgument("subnet4", subnet4);
// Is this solicit (fake = true) or request (fake = false)
- ctx.callout_handle_->setArgument("fake_allocation",
- ctx.fake_allocation_);
+ ctx.callout_handle_->setArgument("fake_allocation", ctx.fake_allocation_);
// The lease that will be assigned to a client
ctx.callout_handle_->setArgument("lease4", expired);