dhcpv4: create struct dhcpv4_lease
authorDavid Härdeman <[email protected]>
Thu, 9 Oct 2025 05:13:58 +0000 (07:13 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 4 Nov 2025 07:51:16 +0000 (08:51 +0100)
commit4df45c8c37227b67319ca39ee4eb2d21966ee693
treecff9f9fddf378e55b4196fcf3a76929b1fcc5277
parenta6dccae41b6068a9bee3ccb85cff0081c1e412d2
dhcpv4: create struct dhcpv4_lease

This makes it easier to understand what is actually going on, makes the
structs clearer and avoids layers of indirection like using free
callbacks. I understand the original motivation for unifying the struct
for DHCPv4 and DHCPv6, but it's more hassle than it is worth.

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