Files
openwrt/package/utils
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
..
2026-01-02 18:07:02 +01:00
2024-10-03 17:27:50 +02:00
2026-02-17 22:25:05 +01:00
2026-04-27 10:50:53 +02:00
2026-02-07 10:04:18 +01:00
2024-11-17 12:30:16 +01:00
2025-11-23 09:20:12 +01:00
2026-01-02 18:07:02 +01:00
2024-02-17 01:55:21 +01:00
2025-11-18 23:13:46 +01:00
2026-04-16 20:45:40 +02:00
2026-06-03 13:46:09 +02:00
2026-06-11 10:33:00 +02:00
2026-02-17 22:25:09 +01:00
2026-04-27 10:50:54 +02:00
2026-02-17 22:25:31 +01:00
2026-06-24 02:14:33 +02:00