<div dir="ltr">Hi Tomek,<div><br></div><div>Thank you for the suggestion. I've also found the relevant coding block for prefix hint in /src/bin/dhcp6/dhcp6_srv.cc. I think the Dhcpv6Srv::assignIA_PD, Dhcpv6Srv::extendIA_NA functions are the place to add the hint handling logic. I'll take a closer look into it.</div><div><br></div><div>Thanks,</div><div>Tianxiang</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-26 6:18 GMT+08:00 Tomek Mrugalski <span dir="ltr"><<a href="mailto:tomasz@isc.org" target="_blank">tomasz@isc.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 25/04/17 10:16, tianxiang li wrote:<br>
> I'm trying to make use of the available Hook Interfaces, but I did not<br>
> find the hook point for the server to select an matching prefix from its<br>
> prefix pool, and record this lease in the database. Could some one point<br>
> out which part of the KEA code should be modified to achieve this<br>
> function? Really appreciate your advice.<br>
</span>Take a look at lease6_select. It should have all the information you<br>
need. It has a lease that was selected by the server, just before it's<br>
actually being used. You can override it with whatever you want. Just<br>
keep in mind that the lease you return from the hook is not sanity<br>
checked in any way, it will be used as is.<br>
<br>
Here's the documentation for it.<br>
<a href="https://jenkins.isc.org/job/Kea_doc/doxygen/d1/d02/dhcpv6Hooks.html" rel="noreferrer" target="_blank">https://jenkins.isc.org/job/<wbr>Kea_doc/doxygen/d1/d02/<wbr>dhcpv6Hooks.html</a><br>
<br>
Tomek<br>
<br>
______________________________<wbr>_________________<br>
kea-dev mailing list<br>
<a href="mailto:kea-dev@lists.isc.org">kea-dev@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-dev" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-dev</a><br>
</blockquote></div><br></div>