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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-07-22 09:26:30 -04:00 committed by Donald Sharp
parent 5e08fee1e1
commit 9fd309db2d

View File

@ -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;