<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">done #3635<div class=""><br class=""></div><div class="">this config</div><div class=""><br class=""></div><div class="">"hooks-libraries" : [ "/opt/keadevel/lib/example.so" ],</div><div class=""><br class=""></div><div class="">worked. Im having a library error, dhcp4 found the lib and tried to load it.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">2014-11-12 18:32:37.088 DEBUG [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_LOADING loading hooks library /opt/keadevel/lib/example.so</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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'</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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'</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">2014-11-12 18:32:37.100 DEBUG [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_UNLOADING unloading library /opt/keadevel/lib/example.so</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">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</div><div style="margin: 0px; font-size: 14px; font-family: Courier; color: rgb(76, 47, 45); background-color: rgb(223, 219, 196);" class="">2014-11-12 18:32:37.109 INFO [kea-dhcp4.hooks/31788] HOOKS_LIBRARY_UNLOADED hooks library /opt/keadevel/lib/example.so successfully unloaded</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 12, 2014, at 18:06, Tomek Mrugalski <<a href="mailto:tomasz@isc.org" class="">tomasz@isc.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">On 12/11/14 10:46, Marcin Siodelski wrote:<br class=""><blockquote type="cite" class="">I think you have a typo. It should be "hooks-libraries" instead of<br class="">"hook-libraries".<br class=""></blockquote>I admit that the documentation is lacking in this regard. We do have<br class="">developer's guide that goes into great details, yet there is nothing in<br class="">User's Guide to explain how to load hooks.<br class=""><br class="">Alexis,<br class="">Can you please file a bug for this? This is clearly a documentation<br class="">deficiency. We should have short sections 6.2.x and 7.2.y that give an<br class="">example on how to run hooks. Also, adding a new example could be helpful.<br class=""><br class="">Thanks,<br class="">Tomek<br class=""><br class=""><br class="">_______________________________________________<br class="">Kea-users mailing list<br class=""><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/kea-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>