summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-07-11 16:34:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-07-11 16:34:37 +0000
commitf3b2cd5b53ad9cc093a914ddd515b2ebb818a11b (patch)
treececeb4f82b631e6fd5219a5e335cbdb83b1a4ae7 /usr.sbin/bgpd/bgpd.h
parentf1dd7ea88f31ec2ec3f3e8d7db1db35a491f3230 (diff)
On IMSG_CTL_SHOW_RIB_MEM also send back information of some of the
hash structures used in the RDE. Makes it fairly obvious that more is needed in that area. OK phessler@ benno@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 9c9902ba4ad..c5a00e7b83f 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.323 2018/07/11 14:08:46 benno Exp $ */
+/* $OpenBSD: bgpd.h,v 1.324 2018/07/11 16:34:36 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -391,6 +391,7 @@ enum imsg_type {
IMSG_CTL_SHOW_RIB_LARGECOMMUNITY,
IMSG_CTL_SHOW_NETWORK,
IMSG_CTL_SHOW_RIB_MEM,
+ IMSG_CTL_SHOW_RIB_HASH,
IMSG_CTL_SHOW_TERSE,
IMSG_CTL_SHOW_TIMER,
IMSG_CTL_LOG_VERBOSE,
@@ -998,6 +999,15 @@ struct rde_memstats {
int64_t attr_dcnt;
};
+struct rde_hashstats {
+ char name[16];
+ int64_t num;
+ int64_t min;
+ int64_t max;
+ int64_t sum;
+ int64_t sumq;
+};
+
#define MRT_FILE_LEN 512
#define MRT2MC(x) ((struct mrt_config *)(x))
#define MRT_MAX_TIMEOUT 7200