odhcpd: add a helper function for addr6/prefix parsing
authorDavid Härdeman <david@hardeman.nu>
Sat, 10 Feb 2024 02:02:28 +0000 (03:02 +0100)
committerdedeckeh <dedeckeh@gmail.com>
Mon, 30 Dec 2024 19:44:26 +0000 (20:44 +0100)
commit171140e90b6a6a8e0c9e8e12dc5cbd4cbe972bef
tree2d01ddf8d784a770e68183437b9ed1525c074632
parent066b3dc6ec1a679ce5cd2353d90f8f735193ff40
odhcpd: add a helper function for addr6/prefix parsing

Which allows a couple of variations of the same code to be removed...
the helper function also won't modify the input string.

Signed-off-by: David Härdeman <david@hardeman.nu>
src/config.c
src/dhcpv6-ia.c
src/odhcpd.c
src/odhcpd.h