From 9e89bcd4f4c1b6b229d4c654d5d5743b2f5192b1 Mon Sep 17 00:00:00 2001 From: LEI BAO Date: Tue, 2 Nov 2021 13:43:26 +0800 Subject: zebra: Fix the RA packets can not sent out Skip the interfaces which not belong to the same VRF as the current thread's zvrf. Signed-off-by: LEI BAO --- zebra/rtadv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra/rtadv.c b/zebra/rtadv.c index 9610f71d0..4c5b320ae 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -493,8 +493,8 @@ static int rtadv_timer(struct thread *thread) RB_FOREACH (vrf, vrf_id_head, &vrfs_by_id) FOR_ALL_INTERFACES (vrf, ifp) { - if (if_is_loopback_or_vrf(ifp) - || !if_is_operative(ifp)) + if (if_is_loopback_or_vrf(ifp) || !if_is_operative(ifp) + || ifp->vrf_id != zvrf->vrf->vrf_id) continue; zif = ifp->info; -- cgit v1.2.3