summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-05 16:01:10 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-05 16:01:10 +0000
commit180dd56d6c1a2fd21e84d33b8ac0c9f68a6d8eec (patch)
treee074045be1529b37699085d448898d4ad5a13a6b /usr.sbin/bgpctl/bgpctl.c
parentacd23084eb2d65084fdafff87f0ed41cc315f005 (diff)
Show attribute cache total reference count.
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index b0d8734ceeb..9abd205cef2 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.97 2006/01/04 12:46:52 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.98 2006/01/05 16:01:09 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1032,6 +1032,7 @@ show_rib_memory_msg(struct imsg *imsg)
printf("%10lld BGP attributes entries using %s of memory\n",
stats.attr_cnt, fmt_mem(stats.attr_cnt *
sizeof(struct attr)));
+ printf("\t and holding %lld references\n", stats.attr_refs);
printf("%10lld BGP attributes using %s of memory\n",
stats.attr_dcnt, fmt_mem(stats.attr_data));
printf("RIB using %s of memory\n", fmt_mem(