openwrt-pf/package/utils/busybox
John Crispin b8175a021b netifd: dhcp: add restart command for clean lease re-acquire
Add a proto_dhcp_restart() handler that re-acquires the DHCP lease via a
single ubus call, releasing the previous lease and triggering a fresh
DHCPDISCOVER without bouncing the interface.

The re-acquire is implemented by sending SIGHUP to udhcpc, which releases
the current lease (if any) and immediately transitions the state machine
to INIT_SELECTING so the next main-loop iteration sends a fresh
DHCPDISCOVER. A single signal thus expresses 'release this lease and get
a new one' without exiting the client, so upstream watchdogs (e.g. a
DNS-health monitor) can request a clean re-lease without tearing down the
interface.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-06-24 11:21:28 +02:00
..
config busybox: update to 1.38.0 2026-06-02 20:43:53 +02:00
files
patches netifd: dhcp: add restart command for clean lease re-acquire 2026-06-24 11:21:28 +02:00
Config-defaults.in busybox: enable timeout utility by default 2026-06-24 11:21:28 +02:00
Config.in
convert_defaults.pl
convert_menuconfig.pl
Makefile busybox: fix signal handling in non-interactive envirement 2026-06-14 11:51:50 +02:00
selinux.config