diff options
author | sarita patra <saritap@vmware.com> | 2022-04-07 09:06:39 +0200 |
---|---|---|
committer | sarita patra <saritap@vmware.com> | 2022-05-13 08:51:21 +0200 |
commit | b9695c6d043d2fcb6d6ae75296eff6d545417286 (patch) | |
tree | 7c24f92e0b910c6853c9e2aa66385cf0e0545d08 /pimd/pim_join.c | |
parent | pimd: Disable receiving register-stop on passive interface (diff) | |
download | frr-b9695c6d043d2fcb6d6ae75296eff6d545417286.tar.xz frr-b9695c6d043d2fcb6d6ae75296eff6d545417286.zip |
pimd: Disable receiving join/prune on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r-- | pimd/pim_join.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index 8c945b1e0..1b722382b 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -164,6 +164,14 @@ int pim_joinprune_recv(struct interface *ifp, struct pim_neighbor *neigh, pastend = tlv_buf + tlv_buf_size; pim_ifp = ifp->info; + 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; + } + /* Parse ucast addr */ |