diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 00:56:50 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 00:56:50 +0000 |
commit | 072c9b4650d6e18303004cea70ad8569db68e202 (patch) | |
tree | 63f536d025e199f518747aa9cb588a1a7d763db3 /usr.sbin/bgpctl | |
parent | 44d6f249157c766324cc97cc7551894849c87b24 (diff) |
keep route refresh counters into account when building sums, and
print route refresh counters in the neighbor view
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 2c45082d379..8849a102473 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.54 2004/04/27 04:06:10 henning Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.55 2004/04/28 00:56:49 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -272,9 +272,11 @@ show_summary_msg(struct imsg *imsg) printf("%-20s %5u %10llu %10llu %5u %-8s %s\n", s, p->conf.remote_as, p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification + - p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive, + p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive + + p->stats.msg_rcvd_rrefresh, p->stats.msg_sent_open + p->stats.msg_sent_notification + - p->stats.msg_sent_update + p->stats.msg_sent_keepalive, + p->stats.msg_sent_update + p->stats.msg_sent_keepalive + + p->stats.msg_sent_rrefresh, p->wbuf.queued, fmt_timeframe(p->stats.last_updown), statenames[p->state]); @@ -421,11 +423,15 @@ print_neighbor_msgstats(struct peer *p) p->stats.msg_sent_update, p->stats.msg_rcvd_update); printf(" %-15s %10llu %10llu\n", "Keepalives", p->stats.msg_sent_keepalive, p->stats.msg_rcvd_keepalive); + printf(" %-15s %10llu %10llu\n", "Route Refresh", + p->stats.msg_sent_rrefresh, p->stats.msg_rcvd_rrefresh); printf(" %-15s %10llu %10llu\n", "Total", p->stats.msg_sent_open + p->stats.msg_sent_notification + - p->stats.msg_sent_update + p->stats.msg_sent_keepalive, + p->stats.msg_sent_update + p->stats.msg_sent_keepalive + + p->stats.msg_sent_rrefresh, p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification + - p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive); + p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive + + p->stats.msg_rcvd_rrefresh); } void |