diff options
| author | sarita patra <saritap@vmware.com> | 2022-04-07 00:07:53 -0700 |
|---|---|---|
| committer | sarita patra <saritap@vmware.com> | 2022-05-12 23:51:21 -0700 |
| commit | c473c7452ad54bbf6a3ea6444b53b6d35ee4fe3e (patch) | |
| tree | cf254f6da414eb08415d6f7b5c9246ed6633d533 /pimd/pim_assert.c | |
| parent | b9695c6d043d2fcb6d6ae75296eff6d545417286 (diff) | |
pimd: Disable receiving assert msg on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index f10ebe2ae0..2cc98f7329 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -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); |
