diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-04 20:07:31 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-04 20:07:31 +0000 |
commit | e127442db30804c78a939d0db51b8bf9435b29a8 (patch) | |
tree | e8b6d40ea4acd6fe41a6cb68a3d11c879857444f /usr.sbin/bgpctl | |
parent | 02288d0e0b8f430b30d006846ccd3391b91a2135 (diff) |
keep seperate message counters for open/update/keepalive/notification
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 5a0490b56d2..6af7444ddf4 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.12 2004/01/04 19:44:27 henning Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.13 2004/01/04 20:07:30 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -189,10 +189,14 @@ show_summary_msg(struct imsg *imsg) switch (imsg->hdr.type) { case IMSG_CTL_SHOW_NEIGHBOR: p = imsg->data; - printf("%-15s %5u %10llu %10llu %8s %s\n", + printf("%-15s %5u %10llu %10llu %-8s %s\n", inet_ntoa(p->conf.remote_addr.sin_addr), - p->conf.remote_as, p->stats.msg_rcvd, - p->stats.msg_send, fmt_timeframe(p->stats.last_updown), + 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_sent_open + p->stats.msg_sent_notification + + p->stats.msg_sent_update + p->stats.msg_sent_keepalive, + fmt_timeframe(p->stats.last_updown), statenames[p->state]); break; case IMSG_CTL_END: |