]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Disable receiving hello on passive interface
authorsarita patra <saritap@vmware.com>
Thu, 7 Apr 2022 07:02:52 +0000 (00:02 -0700)
committersarita patra <saritap@vmware.com>
Fri, 13 May 2022 06:51:21 +0000 (23:51 -0700)
Signed-off-by: sarita patra <saritap@vmware.com>
pimd/pim_hello.c

index a2f68acc78d2a9cef6087e89823544d76b4d839a..833103c27fc305e5bda46f3edd1ce7879f01c6f8 100644 (file)
@@ -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;
 
        /*