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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-10-14 13:15:30 -04:00
parent 1be8f9d323
commit bebc7290cd

View 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))
{