]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3932] Updated hooks dev guide
authorThomas Markwalder <tmark@isc.org>
Fri, 6 Jun 2025 14:02:33 +0000 (10:02 -0400)
committerThomas Markwalder <tmark@isc.org>
Mon, 9 Jun 2025 19:37:07 +0000 (19:37 +0000)
modified:   src/bin/dhcp4/dhcp4_hooks.dox

src/bin/dhcp4/dhcp4_hooks.dox

index bd2f2a9a14e6d03eca39c83b6f7e211a2589e1e9..8f97bd8580b0f9dae477759824098f2262913bf6 100644 (file)
@@ -333,6 +333,7 @@ called before "subnet4_select".
    - name: @b leases4, type: isc::dhcp::Lease4CollectionPtr, direction: <b>in</b>
    - name: @b offer_lifetime, type: uint32_t, direction: <b>in</b>
    - name: @b old_lease, type: isc::dhcp::Lease4Ptr, direction: <b>in</b>
+   - name: @b host, type: isc::dhcp::HostPtr, direction: <b>in</b>
 
  - @b Description: this callout is executed when the server has received
    DHCPDISCOVER from the client and the DHCPOFFER has been constructed but not
@@ -346,7 +347,8 @@ called before "subnet4_select".
    allocation on DHCPDISCOVER is enabled and the lease to be offered already exists in
    the lease store. The "old_lease" argument also comes from the context information
    for the DHCPv4 lease allocation. If not Null, it is a pointer to an old lease that
-   the client had before.
+   the client had before.  The "host" argument is a pointer to the host reserveration
+   associated with the lease. If there is no such reservation the argument is Null.
 
  - <b>Next step status</b>: If any callout installed on the "lease4_offer" hook point
    sets the next step action to DROP, the server will drop the processed query