dhcpv4: improve pool var naming
authorDavid Härdeman <[email protected]>
Mon, 17 Nov 2025 21:51:34 +0000 (22:51 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 27 Nov 2025 07:23:28 +0000 (08:23 +0100)
commit4246bbda56d620539b3a39318eef8f2614dd3af6
tree49231aef0e2f1beb83f35bbf3395f0faf6185d85
parent650a5df88ebae82d956831c2f87c7c6eedd8c283
dhcpv4: improve pool var naming

The uci cfg options might have somewhat confusing names, but
that doesn't mean we have to perpetuate those names throughout the
source.

Also, move the checking of whether the pool parameters from when
we are setting up a pool to where the cfg variables are actually set
from config.

Finally, there's no need to store the pool start and end as "struct
in_addr" in struct interface, because the start and end actually aren't
IPv4 addresses.

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/odhcpd.h