<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1482511774135_10692">Hello all,</div><div id="yui_3_16_0_ym19_1_1482511774135_10692"><br></div><div id="yui_3_16_0_ym19_1_1482511774135_10692" dir="ltr"> I'm new to kea and investigating it for suitability for various projects. If you have seen Facebook's use case of supplying response parameters from a centralized location is a pretty nice approach and I decided to implement similar functionality utilizing the hooks api. I'm sharing it here because it looks like the community around kea is still growing, so this implementation might meet someone's needs; also it might serve as a little more in-depth reference for what I believe might be some common tasks for implementing pkt4_send calls.</div><div id="yui_3_16_0_ym19_1_1482511774135_10692" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1482511774135_10692" dir="ltr"> What it does: implement's hook callout for pkt4_send. Overrides siaddr, tftp-server-name and bootfile-name. Method of override is an HTTP GET request (via libcurl) to retrieve a JSON body. JSON is parsed with boost::ptree. Params are read manually from a JSON config file instead of using module parameters in kea-dhcp4.conf as Ubuntu 16.04 currently ships 1.0.0 and that is my target platform.</div><div id="yui_3_16_0_ym19_1_1482511774135_10692" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1482511774135_10692" dir="ltr"> I'm not an expert in C or C++, pull requests and feedback welcome: <a href="https://github.com/michaelgugino/kea-pxe-replace-mod" id="yui_3_16_0_ym19_1_1482511774135_10951" class="">https://github.com/michaelgugino/kea-pxe-replace-mod</a></div><div id="yui_3_16_0_ym19_1_1482511774135_10963"><br></div><div id="yui_3_16_0_ym19_1_1482511774135_11055">Thanks,</div><div id="yui_3_16_0_ym19_1_1482511774135_11055"><br></div><div id="yui_3_16_0_ym19_1_1482511774135_11055">Michael Gugino</div></div></body></html>