[Kea-users] Hooks - first step

alexis alzrck at gmail.com
Wed Nov 12 21:35:38 UTC 2014


done #3635

this config

"hooks-libraries" : [ "/opt/keadevel/lib/example.so" ],

worked. Im having a library error, dhcp4 found the lib and tried to load it.

2014-11-12 18:32:37.088 DEBUG [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_LOADING loading hooks library /opt/keadevel/lib/example.so
2014-11-12 18:32:37.090 DEBUG [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_VERSION hooks library /opt/keadevel/lib/example.so reports its version as 1
2014-11-12 18:32:37.090 DEBUG [kea-dhcp4.hooks/31788] HOOKS_CALLOUT_REGISTRATION hooks library with index 1 registering callout for hook 'pkt4_receive'
2014-11-12 18:32:37.090 DEBUG [kea-dhcp4.hooks/31788] HOOKS_STD_CALLOUT_REGISTERED hooks library /opt/keadevel/lib/example.so registered standard callout for hook pkt4_receive at address 0x7feb399d8e0d
2014-11-12 18:32:37.091 DEBUG [kea-dhcp4.hooks/31788] HOOKS_CALLOUT_REGISTRATION hooks library with index 1 registering callout for hook 'pkt4_send'
2014-11-12 18:32:37.091 DEBUG [kea-dhcp4.hooks/31788] HOOKS_STD_CALLOUT_REGISTERED hooks library /opt/keadevel/lib/example.so registered standard callout for hook pkt4_send at address 0x7feb399dbcf1
2014-11-12 18:32:37.100 ERROR [kea-dhcp4.hooks/31788] HOOKS_LOAD_ERROR 'load' function in hook library /opt/keadevel/lib/example.so returned error 1
2014-11-12 18:32:37.100 DEBUG [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_UNLOADING unloading library /opt/keadevel/lib/example.so
2014-11-12 18:32:37.101 DEBUG [kea-dhcp4.hooks/31788] HOOKS_UNLOAD_SUCCESS 'unload' function in hook library /opt/keadevel/lib/example.so returned success
2014-11-12 18:32:37.101 DEBUG [kea-dhcp4.hooks/31788] HOOKS_ALL_CALLOUTS_DEREGISTERED hook library at index 1 removed all callouts on hook pkt4_receive
2014-11-12 18:32:37.104 DEBUG [kea-dhcp4.hooks/31788] HOOKS_CALLOUTS_REMOVED callouts removed from hook pkt4_receive for library /opt/keadevel/lib/example.so
2014-11-12 18:32:37.105 DEBUG [kea-dhcp4.hooks/31788] HOOKS_ALL_CALLOUTS_DEREGISTERED hook library at index 1 removed all callouts on hook pkt4_send
2014-11-12 18:32:37.105 DEBUG [kea-dhcp4.hooks/31788] HOOKS_CALLOUTS_REMOVED callouts removed from hook pkt4_send for library /opt/keadevel/lib/example.so
2014-11-12 18:32:37.109 INFO  [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_UNLOADED hooks library /opt/keadevel/lib/example.so successfully unloaded



> On Nov 12, 2014, at 18:06, Tomek Mrugalski <tomasz at isc.org> wrote:
> 
> On 12/11/14 10:46, Marcin Siodelski wrote:
>> I think you have a typo. It should be "hooks-libraries" instead of
>> "hook-libraries".
> I admit that the documentation is lacking in this regard. We do have
> developer's guide that goes into great details, yet there is nothing in
> User's Guide to explain how to load hooks.
> 
> Alexis,
> Can you please file a bug for this? This is clearly a documentation
> deficiency. We should have short sections 6.2.x and 7.2.y that give an
> example on how to run hooks. Also, adding a new example could be helpful.
> 
> Thanks,
> Tomek
> 
> 
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20141112/4ada3bc6/attachment.htm>


More information about the Kea-users mailing list