From df90067aac1ec387fc073ba821ee89eee24cf267 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 28 Oct 2016 15:25:56 -0400 Subject: [PATCH] pimd: Ignore (S,G) Prunes with no current state If we get a (S,G) Prune with no current ifchannel state, ignore the neighbors request. Signed-off-by: Donald Sharp --- pimd/pim_ifchannel.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c index 0c4be9a518..ee09bf4fcb 100644 --- a/pimd/pim_ifchannel.c +++ b/pimd/pim_ifchannel.c @@ -727,6 +727,15 @@ void pim_ifchannel_prune(struct interface *ifp, return; } + ch = pim_ifchannel_find (ifp, sg); + if (!ch && !(source_flags & PIM_ENCODE_RPT_BIT)) + { + if (PIM_DEBUG_TRACE) + zlog_debug ("%s: Received prune with no relevant ifchannel %s(%s) state: %d", + __PRETTY_FUNCTION__, ifp->name, pim_str_sg_dump (sg), source_flags); + return; + } + ch = pim_ifchannel_add(ifp, sg, PIM_UPSTREAM_FLAG_MASK_SRC_PIM); if (!ch) return; -- 2.39.5