Hi all, Breaking my head over here.
Can't seem to figure out what I am missing here. Trying to create a custom hook. Using https://reports.kea.isc.org/dev_guide/df/d46/hooksdgDevelopersGuide.html#hooksdgTutorial as an example. So I have created 5 files (version.cc / library_common.h / load_unload.cc / pkt_receive.cc / pkt_send.cc) compiled it g++ -I /usr/include/kea -L /usr/lib -fpic -shared -o test_hook.so load_unload.cc pkt_receive4.cc pkt_send.cc version.cc -lkea-dhcpsrv -lkea-dhcp++ -lkea-hooks -lkea-log -lkea-util -lkea-exceptions mv the "test_hook.so" to the Hooks dir for kea. Edited the config file to include the hook. But after restart of kea-dhcp4 services I see this error (and kea does not start) Jun 22 14:42:29 dhcp1 kea-dhcp4[81922]: 2023-06-22 14:42:29.237 ERROR [kea-dhcp4.dhcp4/81922.140261235613312] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': hooks libraries failed to validate - library or libraries in error are: /usr/lib/x86_64-linux-gnu/kea/hooks/test_hook.so (/etc/kea/kea-dhcp4.conf:25:5) So where did I go wrong? Regards
-- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users