aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-11 12:50:13 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-11 12:59:57 +0200
commit0000ca5885e0e40ce5d12b641992a567f5df1200 (patch)
tree42948316b8cb3770d56c9e3ce428861d79eecd45 /openbsc/include
parent986926ebdec18214b54705c74adddb7aa7a7c7c7 (diff)
E1 Input: Add rate counters for events related to E1 lines
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/e1_input.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/e1_input.h b/openbsc/include/openbsc/e1_input.h
index 0d79c7d1e..f201c4fb1 100644
--- a/openbsc/include/openbsc/e1_input.h
+++ b/openbsc/include/openbsc/e1_input.h
@@ -8,6 +8,7 @@
#include <openbsc/gsm_data.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/select.h>
+#include <osmocom/core/rate_ctr.h>
#include <openbsc/subchan_demux.h>
#define NUM_E1_TS 32
@@ -19,6 +20,14 @@ enum e1inp_sign_type {
};
const char *e1inp_signtype_name(enum e1inp_sign_type tp);
+enum e1inp_ctr {
+ E1I_CTR_HDLC_ABORT,
+ E1I_CTR_HDLC_BADFCS,
+ E1I_CTR_HDLC_OVERR,
+ E1I_CTR_ALARM,
+ E1I_CTR_REMOVED,
+};
+
struct e1inp_ts;
struct e1inp_sign_link {
@@ -107,6 +116,7 @@ struct e1inp_line {
struct llist_head list;
unsigned int num;
const char *name;
+ struct rate_ctr_group *rate_ctr;
/* array of timestlots */
struct e1inp_ts ts[NUM_E1_TS];