odhcp6c: fix safe interval processing to follow RFC 4862
authorJonas Lochmann <[email protected]>
Mon, 27 Oct 2025 00:00:00 +0000 (01:00 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 4 Nov 2025 08:55:08 +0000 (09:55 +0100)
commitb3e1db42b4dbb5f99705e4d1057ca49b44f4f5ee
tree5f46f7c2455c4ed5aedad36714be738230bd3349
parent63461f64d4c162dc29005760792deb00c9be5b6a
odhcp6c: fix safe interval processing to follow RFC 4862

This resolves an issue occuring in combination with Fritz! upstream
routers that send old prefixes with a valid time of zero for a long
time. Before this change, they were with each received RA extended
to two hours if the prefix was already known before.

Signed-off-by: Jonas Lochmann <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/108
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.c