odhcpd: make the IPv6 RA DNR lifetime configurable
authorDavid Härdeman <[email protected]>
Sat, 28 Dec 2024 16:54:49 +0000 (17:54 +0100)
committerdedeckeh <[email protected]>
Sun, 29 Dec 2024 11:50:42 +0000 (12:50 +0100)
commitc89b8b3f2ff31084d1bebbb414f396eb3c993e6a
tree569588714c51158489c15aae5c1591fca6daa48c
parent6d342cc03bf72f27d0838942d009bf1c5df4f954
odhcpd: make the IPv6 RA DNR lifetime configurable

Add a fake SVC parameter "_lifetime=" which allows explicit configuration of
the maximum time in seconds over which a given ADN announcement is valid. In
particular, this allows announcing ADNs which should no longer be used (zero
lifetime, see rfc9463, §6.1).

In the absence of an explicit lifetime, the previous logic is kept (i.e. the
lifetime is set to 3 * MaxRtrAdvInterval, as per §6.1 of RFC9463).

Signed-off-by: David Härdeman <[email protected]>
src/config.c
src/odhcpd.h
src/router.c