]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Disable receiving register-stop on passive interface
authorsarita patra <saritap@vmware.com>
Thu, 7 Apr 2022 07:05:36 +0000 (00:05 -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_register.c

index cbaea0260a8a605d34ed17fbadcd684996147d7f..947ca41bf35ae814b1a63aaa9fca79b995d184a8 100644 (file)
@@ -147,6 +147,14 @@ int pim_register_stop_recv(struct interface *ifp, uint8_t *buf, int buf_size)
        bool handling_star = false;
        int l;
 
+       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_reg_stop_recv;
 
        memset(&sg, 0, sizeof(sg));