From 0708beb1f464fb26f0d74da6857863778c9fb2f2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 May 2017 10:59:45 -0400 Subject: pimd: Cleanup use of VRF_DEFAULT to pimg->vrf_id Use the appropriate vrf_id instead of always defaulting to VRF_DEFAULT Signed-off-by: Donald Sharp --- pimd/pim_upstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pimd/pim_upstream.c') diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 0ddd04c38..735f5ef40 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -850,7 +850,7 @@ int pim_upstream_evaluate_join_desired(struct pim_upstream *up) struct pim_upstream *starup = up->parent; int ret = 0; - for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) { + for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pimg->vrf_id), node, ifp)) { if (!ifp->info) continue; @@ -1400,7 +1400,7 @@ int pim_upstream_inherited_olist_decide(struct pim_upstream *up) up->channel_oil = pim_channel_oil_add(&up->sg, pim_ifp->mroute_vif_index); - for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) { + for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pimg->vrf_id), node, ifp)) { if (!ifp->info) continue; -- cgit v1.2.3