mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-10 06:52:36 +00:00
pimd: Disable receiving hello on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
This commit is contained in:
parent
11e771be61
commit
39c2130e82
@ -125,6 +125,14 @@ int pim_hello_recv(struct interface *ifp, pim_addr src_addr, uint8_t *tlv_buf,
|
|||||||
pim_ifp = ifp->info;
|
pim_ifp = ifp->info;
|
||||||
assert(pim_ifp);
|
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;
|
++pim_ifp->pim_ifstat_hello_recv;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user