Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Kea 2.2.0+ #26

Open
jirutka opened this issue Jul 30, 2022 · 2 comments
Open

Compatibility with Kea 2.2.0+ #26

jirutka opened this issue Jul 30, 2022 · 2 comments

Comments

@jirutka
Copy link

jirutka commented Jul 30, 2022

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.

algitbot pushed a commit to alpinelinux/aports that referenced this issue Jul 31, 2022
This hook is not compatible with the latest version of Kea and it's
probably even not relevant anymore.

zorun/kea-hook-runscript#26
@fabiodepin
Copy link

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/

@tobbe-eklov
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants