diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-23 19:47:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-23 19:47:10 -0400 |
| commit | 0c3bbed4e670a24134bd0bcb18b56634c542fcf5 (patch) | |
| tree | fb34f0ca1836e09a8e89e73ebd6696a08b89b631 /pimd/pim_iface.c | |
| parent | a12bb225a6681b7e7eb0aac105cbc8b745675131 (diff) | |
| parent | a36898e7555036c786f7aa944b848966b45d5897 (diff) | |
Merge pull request #4597 from FRRouting/revert-3775-ospf_missing_interface_handling_2
Revert "Ospf missing interface handling 2"
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 6ccc6ed196..7b8f045697 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -120,7 +120,7 @@ struct pim_interface *pim_if_new(struct interface *ifp, bool igmp, bool pim, pim_ifp = XCALLOC(MTYPE_PIM_INTERFACE, sizeof(*pim_ifp)); pim_ifp->options = 0; - pim_ifp->pim = pim_get_pim_instance(vrf_to_id(ifp->vrf)); + pim_ifp->pim = pim_get_pim_instance(ifp->vrf_id); pim_ifp->mroute_vif_index = -1; pim_ifp->igmp_version = IGMP_DEFAULT_VERSION; @@ -781,7 +781,7 @@ void pim_if_addr_del_all(struct interface *ifp) struct connected *ifc; struct listnode *node; struct listnode *nextnode; - struct vrf *vrf = ifp->vrf; + struct vrf *vrf = vrf_lookup_by_id(ifp->vrf_id); struct pim_instance *pim; if (!vrf) @@ -853,7 +853,7 @@ struct in_addr pim_find_primary_addr(struct interface *ifp) int v4_addrs = 0; int v6_addrs = 0; struct pim_interface *pim_ifp = ifp->info; - struct vrf *vrf = ifp->vrf; + struct vrf *vrf = vrf_lookup_by_id(ifp->vrf_id); if (!vrf) return addr; @@ -894,10 +894,10 @@ struct in_addr pim_find_primary_addr(struct interface *ifp) if (!v4_addrs && v6_addrs && !if_is_loopback(ifp)) { struct interface *lo_ifp; // DBS - Come back and check here - if (!ifp->vrf || ifp->vrf->vrf_id == VRF_DEFAULT) - lo_ifp = if_lookup_by_name("lo", vrf); + if (ifp->vrf_id == VRF_DEFAULT) + lo_ifp = if_lookup_by_name("lo", vrf->vrf_id); else - lo_ifp = if_lookup_by_name(vrf->name, vrf); + lo_ifp = if_lookup_by_name(vrf->name, vrf->vrf_id); if (lo_ifp) return pim_find_primary_addr(lo_ifp); @@ -1480,7 +1480,7 @@ void pim_if_create_pimreg(struct pim_instance *pim) snprintf(pimreg_name, sizeof(pimreg_name), "pimreg%u", pim->vrf->data.l.table_id); - pim->regiface = if_create(pimreg_name, pim->vrf); + pim->regiface = if_create(pimreg_name, pim->vrf_id); pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF; pim_if_new(pim->regiface, false, false, true, |
