Commit 7d8f2daa authored by Francis Dupont's avatar Francis Dupont Committed by Tomek Mrugalski

[4108] Updated code: the sent hook gets the query

parent 23e4df81
......@@ -718,6 +718,9 @@ Dhcpv4Srv::processPacket(Pkt4Ptr& 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(hook_index_pkt4_send_,
*callout_handle);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment