diff options
author | Razvan Becheriu <razvan@isc.org> | 2021-01-29 09:34:33 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2021-02-18 18:14:26 +0100 |
commit | 812fb67d8bc95455b92a446f9d14860fb1995da4 (patch) | |
tree | 44cf08ab8fa781e03b7d47e3c0acd19f4dc53ee6 /src/bin/dhcp6/dhcp6_srv.cc | |
parent | [#899] implemented hook points (diff) | |
download | kea-812fb67d8bc95455b92a446f9d14860fb1995da4.tar.xz kea-812fb67d8bc95455b92a446f9d14860fb1995da4.zip |
[#899] fixed hook point arguments
Diffstat (limited to 'src/bin/dhcp6/dhcp6_srv.cc')
-rw-r--r-- | src/bin/dhcp6/dhcp6_srv.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 3f0de015c4..d18e316b83 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -3587,8 +3587,10 @@ Dhcpv6Srv::declineLease(const Pkt6Ptr& decline, const Lease6Ptr lease, // Enable copying options from the packet within hook library. ScopedEnableOptionsCopy<Pkt6> query6_options_copy(decline); - // Pass incoming packet as argument + // Pass the original packet callout_handle->setArgument("query6", decline); + + // Pass the lease to be updated callout_handle->setArgument("lease6", lease); // Call callouts |