]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4108] Updated code: the sent hook gets the query
authorFrancis Dupont <fdupont@isc.org>
Fri, 22 Jan 2016 15:23:10 +0000 (16:23 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 22 Feb 2016 19:55:01 +0000 (20:55 +0100)
src/bin/dhcp4/dhcp4_srv.cc

index c7ea30fc8b12a204be883dfa843f690c21939538..b96e62a18e7dbfc9654904b93223b1c2eb12d6ce 100644 (file)
@@ -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);