[PATCH] odhcpd: add option for setting preferred lifetime

Nick vincent at systemli.org
Sat Jan 2 16:18:50 EST 2021


On 1/2/21 9:31 PM, Hans Dedecker wrote:

> Do we really need an extra config option to indicate a configured
> preferred lifetime needs to be used ?
Thanks for your quick review!
I made the requested changes here (untested):
https://github.com/PolynomialDivision/odhcpd/commit/a63ed3e678d292c9b10ca72f8e744343a65e2e17

I'm a bit afraid that we will break backwards compatibility. If people 
want the same behavior as now, they always now have to change the 
lease-time and preferred_lifetime. I have to think about it again. 
Further, now the preferred lifetime is only set, if "ra_useleasetime" is 
set.

I will test the changes and send them via mailing list again.

Bests,
Nick



More information about the openwrt-devel mailing list