router: refactor calc_ra_lifetime; redefine ra_lifetime as uint32_t
authorPaul Donald <[email protected]>
Thu, 9 Oct 2025 21:35:31 +0000 (23:35 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 13 Oct 2025 07:52:51 +0000 (09:52 +0200)
commitaa4f26232e058ee4684afc222efa70964a3d5d0e
treef05d477aa5cd9e5a7da893cb3309242e3e152d8d
parent6ece28ffd475578b629d4b54173b0bcd423e707a
router: refactor calc_ra_lifetime; redefine ra_lifetime as uint32_t

ra_lifetime no longer holds negative values, because we no longer do
'init' when we do calc_ra_lifetime, instead we do init at init time.

Now ra_lifetime holds only >0 values.

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/225
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcpd.h
src/router.c