[Kea-users] Force DHCP option in response
Francis Dupont
fdupont at isc.org
Fri Jul 7 07:52:53 UTC 2017
Arne Baeumler writes:
> thank you for your hint.
> I was already trying to write a hook appending Option 43 to the Pkt
> instead of the PRL ... ;-)
=> it should work too but the advantage of dealing with the PRL is
you will get the expected result if the option 43 is defined locally,
for instance in a class. Note the option 43 itself will change soon
in Kea because current code requires improvement (and even a fix).
> Below is the main part of the hook (in case someone else might have the
> same issue).
> Any recommendations or improvements?
=> you should check that some critical values are not 0, for instance
the result of the dynamic cast. This should make your code more robust.
Regards
Francis Dupont <fdupont at isc.org>
More information about the Kea-users
mailing list