kea-hook-runscript
kea-hook-runscript copied to clipboard
This a hook for the Kea DHCP server that allows to run an external script at various points in the processing of DHCP requests and responses.
This hook fails to build since Kea 2.2.0 (or maybe 2.1.x, I don’t development versions): ``` In file included from /usr/include/kea/dhcpsrv/subnet.h:15, from src/callouts.cc:13: /usr/include/kea/dhcpsrv/network.h:17:10: fatal error: dhcpsrv/cfg_globals.h: No such file...
Got error in log: 2021-07-23 12:53:53.685 ERROR [kea-dhcp4.hook-runscript/56362.0x801adb000] RUNSCRIPT_WAITPID_FAILED waitpid() failed with error: Interrupted system call "library": "/usr/local/lib/kea/hooks/kea-hook-runscript.so", "parameters": { "script": "/usr/local/etc/kea/dhcpv4.pl", "wait": true } FreeBSD srv2 12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4...
Option 50 (Requestd IP) is not propery passed to the script on relayed request packet. Here is debug of script compared against tcpdump (some info are masked) debug script output...
Hook fails with kea-3.0.0 and later because the `subnet4` argument to `subnet4_select` has changed type from `Subnet4Ptr` to `ConstSubnet4Ptr`. I don't have a proper fix, but this removes the failure:...