statefiles: change ipv4 MAC statefile syntax
authorDavid Härdeman <[email protected]>
Sun, 30 Nov 2025 18:14:17 +0000 (19:14 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 30 Nov 2025 18:46:50 +0000 (19:46 +0100)
commit7fddd39166649cdce4a95898ee9e9d60b2141f07
tree270f471143b94cb57616b7973ebe2008ffe72591
parentd0e6bc4d1cc2d2ed2373ad62bfda1b749c5edea1
statefiles: change ipv4 MAC statefile syntax

This changes the MAC representation in the lease/statefile so that it
reads "aa:bb:cc:dd:ee:ff" instead of "aabbccddeeff".

No functional changes, but this makes it easier to parse the statefile
in rpcd-mod-luci (for reporting the MAC addresses in LuCI).

We should probably change lease->hwaddr to be a struct ether_addr,
to make it clearer that we only support MAC addresses as hwaddr,
but that's a topic for a different PR.

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