From a82683694da23799f247b3392a00efdd342afdfc Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 22 Jan 2023 18:12:04 +0100 Subject: VRF: Fix issues with reconfiguration Protocols receive if_notify() announcements that are filtered according to their VRF setting, but during reconfiguration, they access iface_list directly and forgot to check VRF setting here, which leads to all interfaces be addedd. Fix this issue for Babel, OSPF, RAdv and RIP protocols. Thanks to Marcel Menzel for the bugreport. --- proto/radv/radv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto/radv/radv.c') diff --git a/proto/radv/radv.c b/proto/radv/radv.c index 541c3986..119a8dc4 100644 --- a/proto/radv/radv.c +++ b/proto/radv/radv.c @@ -663,6 +663,9 @@ radv_reconfigure(struct proto *P, struct proto_config *CF) struct iface *iface; WALK_LIST(iface, iface_list) { + if (p->p.vrf_set && p->p.vrf != iface->master) + continue; + if (!(iface->flags & IF_UP)) continue; -- cgit v1.2.3