]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Allow RP to clear based upon KAT(S,G)
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 8 Aug 2016 22:56:05 +0000 (18:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:05 +0000 (20:26 -0500)
When the KAT(S,G) pops, allow the RP to clear the
mroute.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index 5b7f67c703f256d2056624ed006b1d588ebaf711..932e06b76d96fe36355092817dbd05ab27cd994e 100644 (file)
@@ -820,21 +820,20 @@ pim_upstream_keep_alive_timer (struct thread *t)
        * But this is the start.
        */
     }
+
+  pim_mroute_update_counters (up->channel_oil);
+
+  if (up->channel_oil->cc.oldpktcnt >= up->channel_oil->cc.pktcnt)
+    {
+      pim_mroute_del (up->channel_oil);
+      pim_upstream_delete (up);
+    }
   else
     {
-      pim_mroute_update_counters (up->channel_oil);
-
-      if (up->channel_oil->cc.oldpktcnt >= up->channel_oil->cc.pktcnt)
-       {
-         pim_mroute_del (up->channel_oil);
-         pim_upstream_delete (up);
-       }
-      else
-       {
-         up->t_ka_timer = NULL;
-         pim_upstream_keep_alive_timer_start (up, PIM_KEEPALIVE_PERIOD);
-       }
+      up->t_ka_timer = NULL;
+      pim_upstream_keep_alive_timer_start (up, PIM_KEEPALIVE_PERIOD);
     }
+
   return 1;
 }