From: Francis Dupont Date: Fri, 22 Jan 2016 15:23:10 +0000 (+0100) Subject: [4108] Updated code: the sent hook gets the query X-Git-Tag: trac4267_base~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d8f2daa3b941c21c026e118f06b99bafeb04339;p=thirdparty%2Fkea.git [4108] Updated code: the sent hook gets the query --- diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index c7ea30fc8b..b96e62a18e 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -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);