From 07d6bab3f2ab8919202c63c87df52b864d7ff321 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 3 Nov 2016 15:44:24 -0400 Subject: [PATCH] pimd: Fix test for (S,G,rpt) prune inclusion. The (S,G,rpt) prune inclusion was incorrectly considering if the RPF' was the same for (S,G) and (*,G). Signed-off-by: Donald Sharp --- pimd/pim_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_msg.c b/pimd/pim_msg.c index 12a043b650..1ae039e1c2 100644 --- a/pimd/pim_msg.c +++ b/pimd/pim_msg.c @@ -218,7 +218,7 @@ pim_msg_join_prune_encode (uint8_t *buf, int buf_size, int is_join, { if (child->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) { - if (pim_rpf_is_same(&up->rpf, &child->rpf)) + if (!pim_rpf_is_same(&up->rpf, &child->rpf)) { zlog_debug ("%s: SPT Bit and RPF'(%s) != RPF'(S,G): Add Prune (%s,rpt) to compound message", __PRETTY_FUNCTION__, star_g, pim_str_sg_dump (&child->sg)); -- 2.39.5