]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add debug for packet stats
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 14 Oct 2016 17:15:30 +0000 (13:15 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:11 +0000 (20:26 -0500)
Allow us to figure out what is going wrong in some
situations, so add some debugs.

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

index 192b6609edd797301c8a1402a7e70b3dcbee4717..7f98f043daa5fec4164c64469479a04fe193b931 100644 (file)
@@ -863,6 +863,13 @@ pim_upstream_keep_alive_timer (struct thread *t)
 
   pim_mroute_update_counters (up->channel_oil);
 
+  if (PIM_DEBUG_MROUTE)
+    {
+      zlog_debug ("New: %llu %lu %lu %lu", up->channel_oil->cc.lastused, up->channel_oil->cc.pktcnt,
+                  up->channel_oil->cc.bytecnt, up->channel_oil->cc.wrong_if);
+      zlog_debug ("old: %llu %lu %lu %lu", up->channel_oil->cc.lastused, up->channel_oil->cc.oldpktcnt,
+                  up->channel_oil->cc.oldbytecnt, up->channel_oil->cc.oldwrong_if);
+    }
   if ((up->channel_oil->cc.oldpktcnt >= up->channel_oil->cc.pktcnt) &&
       (up->channel_oil->cc.lastused/100 >= qpim_keep_alive_time))
     {