forked from Mirror/frr
pimd: Disable receiving assert msg on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
This commit is contained in:
parent
b9695c6d04
commit
c473c7452a
|
@ -303,6 +303,15 @@ int pim_assert_recv(struct interface *ifp, struct pim_neighbor *neigh,
|
|||
|
||||
pim_ifp = ifp->info;
|
||||
assert(pim_ifp);
|
||||
|
||||
if (pim_ifp->pim_passive_enable) {
|
||||
if (PIM_DEBUG_PIM_PACKETS)
|
||||
zlog_debug(
|
||||
"skip receiving PIM message on passive interface %s",
|
||||
ifp->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
++pim_ifp->pim_ifstat_assert_recv;
|
||||
|
||||
return dispatch_assert(ifp, msg_source_addr, sg.grp, msg_metric);
|
||||
|
|
Loading…
Reference in a new issue