diff options
author | Sarita Patra <saritap@vmware.com> | 2022-10-19 01:31:00 +0200 |
---|---|---|
committer | Sarita Patra <saritap@vmware.com> | 2023-02-24 13:40:38 +0100 |
commit | e14ba248742cd56b903ccd965576ac18ad41d310 (patch) | |
tree | 6ed4873bec4372ffe82c26010b82ecfe81bb7c1c /pimd/pim_rpf.c | |
parent | pimd, pim6d: Fix RP Unknown IIF (diff) | |
download | frr-e14ba248742cd56b903ccd965576ac18ad41d310.tar.xz frr-e14ba248742cd56b903ccd965576ac18ad41d310.zip |
pimd, pim6d: fix pim neighbor check in pim_nexthop_lookup
When there is a mismatch in nexthop address (secondary address)
and neighborship address(primary address) on the same interface,
RPF check fails.
This is fixed now.
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_rpf.c')
-rw-r--r-- | pimd/pim_rpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_rpf.c b/pimd/pim_rpf.c index 06765d93d..b17ae3131 100644 --- a/pimd/pim_rpf.c +++ b/pimd/pim_rpf.c @@ -116,8 +116,8 @@ bool pim_nexthop_lookup(struct pim_instance *pim, struct pim_nexthop *nexthop, i++; } else if (neighbor_needed && !pim_if_connected_to_source(ifp, addr)) { - nbr = pim_neighbor_find(ifp, - nexthop_tab[i].nexthop_addr); + nbr = pim_neighbor_find( + ifp, nexthop_tab[i].nexthop_addr, true); if (PIM_DEBUG_PIM_TRACE_DETAIL) zlog_debug("ifp name: %s, pim nbr: %p", ifp->name, nbr); |