From: Donald Sharp Date: Fri, 14 Oct 2016 17:15:30 +0000 (-0400) Subject: pimd: Add debug for packet stats X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~172 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bebc7290cd2cec4222beba831949d73161dfe318;p=mirror%2Ffrr.git pimd: Add debug for packet stats Allow us to figure out what is going wrong in some situations, so add some debugs. Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 192b6609ed..7f98f043da 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -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)) {