]> git.ipfire.org Git - thirdparty/openwrt.git/commit
netifd: expose udhcpc timeout/retry/tryagain UCI options in dhcp.sh
authorJohn Crispin <john@phrozen.org>
Thu, 16 Apr 2026 12:26:11 +0000 (14:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 24 Jun 2026 09:21:28 +0000 (11:21 +0200)
commitd2f17ddd395ef4717555e5bd2eddb2e787d94f31
tree3efd108340f72277a353fdae281dcf5e71c1d90b
parentc9945c203accce9dad4799ae4fddecefc49ea814
netifd: expose udhcpc timeout/retry/tryagain UCI options in dhcp.sh

proto/dhcp.sh hardcoded `-t 0` (infinite retries) with no way
for UCI / operator to tune per-retry interval (udhcpc -T),
retry count (udhcpc -t) or failure retry-loop wait (udhcpc -A).
Add three new proto config ints (timeout, retry, tryagain)
and thread them into the udhcpc command line. Unset options
preserve existing behaviour: retry defaults to 0, timeout and
tryagain are omitted so udhcpc uses its own RFC defaults.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh