router: always check ra_default
authorstijn@linux-ipv6.be <stijn@linux-ipv6.be>
Thu, 16 Feb 2023 20:30:41 +0000 (22:30 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 17 Feb 2023 12:27:21 +0000 (14:27 +0200)
commitedc5e1738682e764e64bcbffde1e0a1cc9feac21
tree8261901bf50e8b39a5d033b7d50d9fb503a3036d
parent5a1775178bfbaf3327df99998b60d1c48b2dad9d
router: always check ra_default

We currently only check ra_default when an interface has valid
addresses. This results in ra_default being ignored in case we have an
interface with only link-local addresses. This effectively breaks the
use of value 2 for the ra_default parameter.

Fix this by always checking ra_lifetime, regardless of the interface
having public addresses or not.

Fixes: #11930
Fixes: 83e14f455817 ("router: advertise removed addresses as invalid in 3 consecutive RAs")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by:Hans Dedecker <dedeckeh@gmail.com>
src/router.c