statefiles: unify host4 writing
authorDavid Härdeman <[email protected]>
Sat, 8 Nov 2025 14:56:30 +0000 (15:56 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:30:51 +0000 (08:30 +0100)
commit67a6626dd2f59f3dbb6518ac0c5c96e61129fc47
tree02c740ba40f59cdb80b2abb150349f504a1ec169
parentbf9889dfcd47aff017022940a0407ed5414eb698
statefiles: unify host4 writing

The statefile contains host entries and state comments. Reuse the host
writing functionality for IPv4 hosts, and remove some duplication.

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]>
src/statefiles.c