diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-06 18:14:49 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-06 18:14:49 +0000 |
commit | ff30a963a8c2191dc401a6151b6a2a247a1d6736 (patch) | |
tree | 2f9e5af0ed65c7e95ecc436a5bddf211095e6d60 /usr.sbin/bgpctl | |
parent | 2be012a6184333480af7abe0574a84799840c222 (diff) |
Include update statistics in the bgpctl show neighbor output.
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index fcf3d8f508b..2596cd5991b 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.120 2007/03/31 12:46:55 henning Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.121 2007/04/06 18:14:48 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -624,13 +624,19 @@ print_neighbor_msgstats(struct peer *p) 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", + printf(" %-15s %10llu %10llu\n\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_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_rrefresh); + printf(" Update statistics:\n"); + printf(" %-15s %-10s %-10s\n", "", "Sent", "Received"); + printf(" %-15s %10llu %10llu\n", "Updates", + p->stats.prefix_sent_update, p->stats.prefix_rcvd_update); + printf(" %-15s %10llu %10llu\n", "Withdraws", + p->stats.prefix_sent_withdraw, p->stats.prefix_rcvd_withdraw); } void |