diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 058a923d01..8ef3c43a99 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -1300,6 +1300,14 @@ int pim_bsm_process(struct interface *ifp, pim_sgaddr *sg, uint8_t *buf, return -1; } + 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_bsm_rx++; pim = pim_ifp->pim; pim->bsm_rcvd++;