]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Fix the RA packets can not sent out
authorLEI BAO <bali.baolei@cn.ibm.com>
Tue, 2 Nov 2021 05:43:26 +0000 (13:43 +0800)
committerLEI BAO <bali.baolei@cn.ibm.com>
Tue, 2 Nov 2021 05:44:21 +0000 (13:44 +0800)
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>
zebra/rtadv.c

index 9610f71d09c7c57f29d8fea6765a705c4c787998..4c5b320ae06aa1f76f6b274b4edc971f6f74db3b 100644 (file)
@@ -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;