From 9fd309db2d88eeba9d2828fb5fe47516f51cbec1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 22 Jul 2016 09:26:30 -0400 Subject: [PATCH] pimd: Start switchover to using a PRUNE (S,G) for uninteresting streams When we receive a register for a (S,G) that we have no interest in prune it off and send the register stop. Signed-off-by: Donald Sharp --- pimd/pim_register.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pimd/pim_register.c b/pimd/pim_register.c index d6c8fecd9f..8c9e6c7810 100644 --- a/pimd/pim_register.c +++ b/pimd/pim_register.c @@ -313,6 +313,12 @@ pim_register_recv (struct interface *ifp, * If we don't have a place to send ignore the packet */ if (!upstream) + { + upstream = pim_upstream_add (source, group, ifp); + pim_upstream_switch (upstream, PIM_UPSTREAM_PRUNE); + } + + if (upstream->join_state == PIM_UPSTREAM_PRUNE) { pim_register_stop_send (ifp, source, group, src_addr); return 1; -- 2.39.5