diff options
| author | sarita patra <saritap@vmware.com> | 2022-04-07 00:02:52 -0700 | 
|---|---|---|
| committer | sarita patra <saritap@vmware.com> | 2022-05-12 23:51:21 -0700 | 
| commit | 39c2130e821b756e84f9b18030749b7088108a1d (patch) | |
| tree | 30bcb9dcf3da0bf37a8fe87b2ce579c85af9b15c /pimd/pim_hello.c | |
| parent | 11e771be6166a23d2eacace88ade19c659c671fd (diff) | |
pimd: Disable receiving hello on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_hello.c')
| -rw-r--r-- | pimd/pim_hello.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_hello.c b/pimd/pim_hello.c index a2f68acc78..833103c27f 100644 --- a/pimd/pim_hello.c +++ b/pimd/pim_hello.c @@ -125,6 +125,14 @@ int pim_hello_recv(struct interface *ifp, pim_addr src_addr, uint8_t *tlv_buf,  	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_hello_recv;  	/*  | 
