From: Donald Sharp Date: Wed, 3 Aug 2016 18:40:10 +0000 (-0400) Subject: pimd: Add rs_timer display X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~318 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ad6ec47b81a362ff1a2ef0a0c16d69401c2cc376;p=mirror%2Ffrr.git pimd: Add rs_timer display For the 'show ip pim upstream' command addd the RSTimer to the display Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index f3d1244e9a..4319b06815 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -982,26 +982,29 @@ static void pim_show_upstream(struct vty *vty) now = pim_time_monotonic_sec(); - vty_out(vty, "Iif Source Group State Uptime JoinTimer RefCnt%s", VTY_NEWLINE); + vty_out(vty, "Iif Source Group State Uptime JoinTimer RSTimer RefCnt%s", VTY_NEWLINE); for (ALL_LIST_ELEMENTS_RO(qpim_upstream_list, upnode, up)) { char src_str[100]; char grp_str[100]; char uptime[10]; char join_timer[10]; + char rs_timer[10]; pim_inet4_dump("", up->sg.u.sg.src, src_str, sizeof(src_str)); pim_inet4_dump("", up->sg.u.sg.grp, grp_str, sizeof(grp_str)); pim_time_uptime(uptime, sizeof(uptime), now - up->state_transition); pim_time_timer_to_hhmmss(join_timer, sizeof(join_timer), up->t_join_timer); + pim_time_timer_to_hhmmss (rs_timer, sizeof (rs_timer), up->t_rs_timer); - vty_out(vty, "%-10s%-15s %-15s %-5s %-8s %-9s %6d%s", + vty_out(vty, "%-10s%-15s %-15s %-5s %-8s %-9s %-9s %6d%s", up->rpf.source_nexthop.interface->name, src_str, grp_str, pim_upstream_state2str (up), uptime, join_timer, + rs_timer, up->ref_count, VTY_NEWLINE); }