mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 06:59:21 +00:00
pimd: Disable receiving register msg on passive interface
Signed-off-by: sarita patra <saritap@vmware.com>
This commit is contained in:
parent
39c2130e82
commit
b4afc283e9
@ -449,6 +449,14 @@ int pim_register_recv(struct interface *ifp, pim_addr dest_addr,
|
||||
struct pim_instance *pim = pim_ifp->pim;
|
||||
pim_addr rp_addr;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
#define PIM_MSG_REGISTER_BIT_RESERVED_LEN 4
|
||||
ip_hdr = (tlv_buf + PIM_MSG_REGISTER_BIT_RESERVED_LEN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user