router: limit prefix preferred_lt to valid_lt in accordance with RFC4861
authorPaul Donald <newtwen@gmail.com>
Tue, 9 Apr 2024 03:04:05 +0000 (05:04 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 May 2024 22:06:23 +0000 (00:06 +0200)
commite164414aa18454d08bfd3d0480acfa0d5754034d
treec2d95c65f30badf092106b2ab4f0ea18d88eba94
parent3b4e06055900c7e3dc6462ad17ff897093b1fc27
router: limit prefix preferred_lt to valid_lt in accordance with RFC4861

Follow-up fix for bc9d317f2921 ("dhcpv6-ia: fix invalid preferred
lifetime").

https://www.rfc-editor.org/rfc/rfc4861#page-44

Fixes: bc9d317f2921 ("dhcpv6-ia: fix invalid preferred lifetime")
Signed-off-by: Paul Donald <newtwen@gmail.com>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
[ fix comment format and improve commit title ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
src/router.c