dhcpv6-ia: split statefile handling to separate file
authorDavid Härdeman <[email protected]>
Fri, 7 Nov 2025 15:43:26 +0000 (16:43 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:28:22 +0000 (08:28 +0100)
commit7136fbe390a567b08324c9d9978d32ad1ea596a7
tree4d5256f042ce6a1ade5d588a01831a10b5af9d0f
parent2b26df1293c1209596fdb2327ca3393bc0d5fdd4
dhcpv6-ia: split statefile handling to separate file

dhcpv6-ia.c is already quite long, which makes it harder to work with.
In addition, the whole statefile machinery isn't specific to the dhcpv6
server, but shared by the dhcpv4 and dhcpv6 servers, so split it out to
its own file.

This is in preparation for some more hacking on the statefile handling.

The copyright headers on statefiles.[ch] are the result of some git
archeology, and I've taken the liberty of putting them in REUSE format,
using only the initial copyright year for each contributor (one of the
recommendations from the REUSE project).

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
CMakeLists.txt
src/dhcpv4.c
src/dhcpv6-ia.c
src/dhcpv6-ia.h [new file with mode: 0644]
src/odhcpd.h
src/statefiles.c [new file with mode: 0644]
src/statefiles.h [new file with mode: 0644]
src/ubus.c