]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: use request_time, fallback_time and ipv4ll_time
authorRoy Marples <roy@marples.name>
Fri, 24 May 2024 10:30:29 +0000 (10:30 +0000)
committerRoy Marples <roy@marples.name>
Fri, 24 May 2024 10:30:29 +0000 (10:30 +0000)
commit6149af646b610d0b36826fdfbec7157ce03ca166
tree3edef4e32ed1bb70e511455ff257fca9c234f16f
parent8dc7f72c63f1a4ba50e5b3c42c85f42f34f41fbf
DHCP: use request_time, fallback_time and ipv4ll_time

Rather than reboot time.

This allows reboot time of zero to skip the using old leases
while still allowing REQUESTs to gracefully fallback to DISCOVER.

request_time has a default of 180 seconds to mirror the DHCPv6
equivalent.
fallback_time and ipv4_ll time have a default of 5 seconds
to mirror the default reboot time.

Fixes #325 and affects #255.
src/dhcp.c
src/dhcpcd.conf.5.in
src/if-options.c
src/if-options.h