dhcpv4: simplify pool determination
authorDavid Härdeman <[email protected]>
Wed, 19 Nov 2025 18:43:36 +0000 (19:43 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 27 Nov 2025 07:24:05 +0000 (08:24 +0100)
commit1c2e8b60809aaa4fa12f75cae8447523ca626d70
tree57e4322e923459809c1da5ef16aabb522e4c0a1b
parentfca3fee38ea48843f277e26624e9555d8b74edc5
dhcpv4: simplify pool determination

This simplifies the logic to determine a dynamic dhcp pool range based
on the prefix length (when "start" and "limit" aren't set).

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c
src/dhcpv4.c
src/dhcpv4.h
src/odhcpd.c
src/odhcpd.h