From: claudio Date: Tue, 20 Aug 2024 12:00:20 +0000 (+0000) Subject: Use stats.msg_queue_len instead of looking into the msgbuf struct. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=64f32adac023445fd39d3b065e98a844cdb77eaf;p=openbsd Use stats.msg_queue_len instead of looking into the msgbuf struct. OK tb@ --- 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 @@ -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);