On 13.09.2016 12:28, Rui Pedro Caldeira wrote: > Hello all it seems to be a problem with Kea 1.0 regarding hooks. > > I was trying to hook myself to the *lease4_select* function and get the > *query4 *param as stated in the documentation > (http://git.kea.isc.org/~tester/kea/doxygen/de/df3/dhcpv4Hooks.html#dhcpv4HooksLeaseSelect) > > > I always get an error stating that the param does not exist. However, if > i hook to the *pkt4_send* function it works alright. Is it just me or it > is a real issue? > > Best Regards, > > > * name:*query4*, type: isc::dhcp::Pkt4Ptr > > <http://git.kea.isc.org/%7Etester/kea/doxygen/d5/d8c/namespaceisc_1_1dhcp.html#a3f332dc70d05fbe8e0fb453434c22d93>, > direction: *in* > * name: *subnet4*, type: isc::dhcp::Subnet4Ptr > > <http://git.kea.isc.org/%7Etester/kea/doxygen/d5/d8c/namespaceisc_1_1dhcp.html#a17ccc4cfb9f7534dfcedc83ebe0e5d5a>, > direction: *in* > * name: *fake_allocation*, type: bool, direction: *in* > * name: *lease4*, type: isc::dhcp::Lease4Ptr > > <http://git.kea.isc.org/%7Etester/kea/doxygen/d5/d8c/namespaceisc_1_1dhcp.html#aec4424838e2e5bb397345cdc32c0ef28>, > direction: *in/out* > > -- >
Hello, Did you manage to resolve this problem? I am willing to help you sort it out, but it would be useful to have the snippet of the hook library to reproduce it. The documentation is correct. The "query4" parameter is passed by the server to a hook. Marcin Siodelski ISC _______________________________________________ Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
