Browse Source

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

Francis Dupont 9 years ago
parent
commit
7d8f2daa3b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bin/dhcp4/dhcp4_srv.cc

+ 3 - 0
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);