summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-08-20 12:00:21 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-08-20 12:00:21 +0000
commit77cffcc33217f6cd6920469a4c589872b62a0bd4 (patch)
treebf72f5acf7ddbe01a914fc3d31710a875c1f96ee /usr.sbin/bgpctl
parent61fbc609c384ee73168e65f5afb6f8148c583432 (diff)
Use stats.msg_queue_len instead of looking into the msgbuf struct.
OK tb@
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r--usr.sbin/bgpctl/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/output.c b/usr.sbin/bgpctl/output.c
index 8f72fecc892..de0e56fe2cf 100644
--- a/usr.sbin/bgpctl/output.c
+++ b/usr.sbin/bgpctl/output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: output.c,v 1.53 2024/08/14 19:10:51 claudio Exp $ */
+/* $OpenBSD: output.c,v 1.54 2024/08/20 12:00:20 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -119,7 +119,7 @@ show_summary(struct peer *p)
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->wbuf.queued,
+ p->stats.msg_queue_len,
fmt_monotime(p->stats.last_updown));
if (p->state == STATE_ESTABLISHED) {
printf("%6u", p->stats.prefix_cnt);