diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-08-29 14:57:28 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-08-29 14:57:28 +0000 |
commit | f8f517d8351a190ed941ee030f3a5d5458474869 (patch) | |
tree | e14876bbd3c046a3c9b1001d496e029167cc8053 /usr.sbin/bgpd/rde.c | |
parent | 2c5260ab167e7aef25c13670be2111a0b16a365d (diff) |
Export pending update and withdraw as part of struct peer_stats.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index febdc17fa5e..10f86a8997b 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.565 2022/08/26 14:10:52 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.566 2022/08/29 14:57:27 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -623,6 +623,8 @@ badnetdel: peer->prefix_sent_withdraw; p.stats.prefix_sent_eor = peer->prefix_sent_eor; + p.stats.pending_update = peer->up_nlricnt; + p.stats.pending_withdraw = peer->up_wcnt; } imsg_compose(ibuf_se_ctl, IMSG_CTL_SHOW_NEIGHBOR, 0, imsg.hdr.pid, -1, &p, sizeof(struct peer)); |