[kea-dev] configuring prefix delegation behavior of kea dhcpv6
tianxiang li
peter416733 at gmail.com
Wed Apr 26 14:00:29 UTC 2017
Hi Tomek,
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.
Thanks,
Tianxiang
2017-04-26 6:18 GMT+08:00 Tomek Mrugalski <tomasz at isc.org>:
> On 25/04/17 10:16, tianxiang li wrote:
> > I'm trying to make use of the available Hook Interfaces, but I did not
> > find the hook point for the server to select an matching prefix from its
> > prefix pool, and record this lease in the database. Could some one point
> > out which part of the KEA code should be modified to achieve this
> > function? Really appreciate your advice.
> Take a look at lease6_select. It should have all the information you
> need. It has a lease that was selected by the server, just before it's
> actually being used. You can override it with whatever you want. Just
> keep in mind that the lease you return from the hook is not sanity
> checked in any way, it will be used as is.
>
> Here's the documentation for it.
> https://jenkins.isc.org/job/Kea_doc/doxygen/d1/d02/dhcpv6Hooks.html
>
> Tomek
>
> _______________________________________________
> kea-dev mailing list
> kea-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-dev/attachments/20170426/f02a11dd/attachment.html>
More information about the kea-dev
mailing list