[RFC 2/2] udhcpc: Allow to limit maximum lease timeout
Denys Vlasenko
vda.linux at googlemail.com
Fri Nov 25 20:50:40 UTC 2016
On Tue, Nov 15, 2016 at 1:47 PM, Sven Eckelmann
<sven.eckelmann at open-mesh.com> wrote:
> From: Marek Lindner <marek.lindner at open-mesh.com>
>
> The lease timeout accepted by udhcpc can currently be any value between 16s
> and 268435455s (~8.5 years). This maximum limit can be too much for mobile
> setups with changing DHCP servers.
Describe a problematic scenario you have in mind.
> Usually these settings will then be
> lowered on the DHCP server. But the user may not have access over the DHCP
> server and thus has to avoid these large lease timeouts purely on the client
> side.
You can implement this in dhcp script, like this:
test "$lease" && test "$lease" -gt 3600 && lease=3600
More information about the busybox
mailing list