aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 18:16:00 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 18:18:12 +0800
commitb2c38ebb1f2e9f670b3a59caca9e6195277b62be (patch)
tree03fb94bdb12e550b46ec92343212a7fc823282d0 /openbsc/include/openbsc/bsc_nat.h
parentf6d0e06940d6430ef58ecd095702e8d1d323d605 (diff)
nat: Switch per BSC counters to the rate ctr.
This is switching the simple statistics to the rate counter and is updating all users...
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index cb0f76188..bb2d5df95 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -31,6 +31,7 @@
#include <osmocore/msgb.h>
#include <osmocore/timer.h>
#include <osmocore/write_queue.h>
+#include <osmocore/rate_ctr.h>
#include <osmocore/statistics.h>
#include <regex.h>
@@ -142,14 +143,13 @@ struct sccp_connections {
* Stats per BSC
*/
struct bsc_config_stats {
- struct {
- struct counter *conn;
- struct counter *calls;
- } sccp;
+ struct rate_ctr_group *ctrg;
+};
- struct {
- struct counter *reconn;
- } net;
+enum bsc_cfg_ctr {
+ BCFG_CTR_SCCP_CONN,
+ BCFG_CTR_SCCP_CALLS,
+ BCFG_CTR_NET_RECONN,
};
/**