diff options
| author | LEI BAO <bali.baolei@cn.ibm.com> | 2021-11-05 21:06:01 +0800 |
|---|---|---|
| committer | LEI BAO <bali.baolei@cn.ibm.com> | 2021-11-05 21:06:12 +0800 |
| commit | 4a2f76dbabe10d72da9793be7570ada98ef6f48e (patch) | |
| tree | db4a0fad1d2ac42b2923d914e82a2b7bbf494427 | |
| parent | 553dbdbf8e56c7162598908f7c53a6e020248a09 (diff) | |
zebar: Fix the RA sent fail in netns mode
Make the code more explicit.
Signed-off-by: LEI BAO <bali.baolei@cn.ibm.com>
| -rw-r--r-- | zebra/rtadv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c index a15d78f64b..ab3e55d100 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -494,7 +494,7 @@ 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_lookup_by_index(ifp->ifindex, zvrf->vrf->vrf_id) == NULL) + || (vrf_is_backend_netns() && ifp->vrf_id != zvrf->vrf->vrf_id)) continue; zif = ifp->info; |
