From 0000ca5885e0e40ce5d12b641992a567f5df1200 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 11 Aug 2011 12:50:13 +0200 Subject: E1 Input: Add rate counters for events related to E1 lines --- openbsc/include/openbsc/e1_input.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbsc/include') 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 #include #include +#include #include #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]; -- cgit v1.2.3