kea-hook-runscript icon indicating copy to clipboard operation
kea-hook-runscript copied to clipboard

Compatibility with Kea 2.2.0+

Open jirutka opened this issue 3 years ago • 2 comments

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 or directory
   17 | #include <dhcpsrv/cfg_globals.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:14: src/callouts.o] Error 1

Kea doesn’t provide dhcpsrv/cfg_globals.h anymore.

I’m not sure if this hook is still relevant since the official Run Script hook though. I don’t use it myself anymore, just maintain kea-hook-runscript package in Alpine Linux. Well, until now, I’m about to remove it due to incompatibility with the latest Kea.

jirutka avatar Jul 30 '22 00:07 jirutka

Hello,

Just copy the dhcpsrv/cfg_globals.h file from the kea source to the kea installation destination directory. Probably forgot to add this to the Makefile.

Example: cp /usr/src/kea-2.2.0/src/lib/dhcpsrv/cfg_globals.h /usr/local/dhcp-kea/include/kea/dhcpsrv/

fabiodepin avatar Oct 21 '22 19:10 fabiodepin

I should just open a ticket for the same thing but I will try this out! But this hook is still relevant because the official hook don't include Option 18 and 37 so it's hard to log DHCPv6 traffic that must be logged in some countries. Or if someone has any better idea to get that information without debug logging or pay for the forensic log hook.

tobbe-eklov avatar Mar 30 '23 19:03 tobbe-eklov