[kea-dev] configuring prefix delegation behavior of kea dhcpv6

Tomek Mrugalski tomasz at isc.org
Tue Apr 25 22:18:58 UTC 2017


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



More information about the kea-dev mailing list