aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-16 12:32:20 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 16:22:18 +0100
commitaafa7c788e25070e7bd25430c1939d5de128df26 (patch)
tree176dc47c686c30569168ad912eab7a540d311862 /include
parent7d7c711a43ce94912bb95e7a0485e81713eed06c (diff)
stats: Add rate_counter for more statistics on the MTP side
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am2
-rw-r--r--include/counter.h46
2 files changed, 47 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 7693480..1dbaef7 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,6 +1,6 @@
noinst_HEADERS = mtp_level3.h mtp_data.h ipaccess.h thread.h mtp_pcap.h \
mgcp_ss7.h bss_patch.h bssap_sccp.h bsc_data.h udp_input.h \
snmp_mtp.h cellmgr_debug.h bsc_sccp.h bsc_ussd.h sctp_m2ua.h \
- isup_types.h
+ isup_types.h counter.h
SUBDIRS = mgcp
diff --git a/include/counter.h b/include/counter.h
new file mode 100644
index 0000000..631781c
--- /dev/null
+++ b/include/counter.h
@@ -0,0 +1,46 @@
+/* Counter for the Link and Link-Set */
+/*
+ * (C) 2011 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2011 by On-Waves
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+#ifndef counter_h
+#define counter_h
+
+#include <osmocore/rate_ctr.h>
+
+enum {
+ MTP_LSET_TOTA_IN_MSG,
+ MTP_LSET_SCCP_IN_MSG,
+ MTP_LSET_IUSP_IN_MSG,
+ MTP_LSET_TOTA_OUT_MSG,
+ MTP_LSET_SCCP_OUT_MSG,
+ MTP_LSET_ISUP_OUT_MSG,
+};
+
+enum {
+ MTP_LNK_IN,
+ MTP_LNK_OUT,
+ MTP_LNK_ERROR,
+ MTP_LNK_SLTM_TOUT,
+};
+
+const struct rate_ctr_group_desc *mtp_link_set_rate_ctr_desc();
+const struct rate_ctr_group_desc *mtp_link_rate_ctr_desc();
+
+#endif