summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLEI BAO <bali.baolei@cn.ibm.com>2021-11-02 06:43:26 +0100
committerLEI BAO <bali.baolei@cn.ibm.com>2021-11-02 06:44:21 +0100
commit9e89bcd4f4c1b6b229d4c654d5d5743b2f5192b1 (patch)
tree7af7f4ea9c6ca92846d0c60a0160f4fe839b5cba
parentMerge pull request #9860 from pguibert6WIND/nhrp_align_privs (diff)
downloadfrr-9e89bcd4f4c1b6b229d4c654d5d5743b2f5192b1.tar.xz
frr-9e89bcd4f4c1b6b229d4c654d5d5743b2f5192b1.zip
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 <bali.baolei@cn.ibm.com>
-rw-r--r--zebra/rtadv.c4
1 files 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;