]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_register.c
pimd: Disable receiving register-stop on passive interface
[mirror_frr.git] / 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));