summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-26 16:25:37 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-02 16:01:27 +0100
commit64630cccc763da7088c1d1ff251a89d4d352cd4b (patch)
tree6e4ea25f13e3ebd0d7a0fd9bb8a446e41aeb8c3c /openbsc/src/osmo-bsc_nat
parent11cb27ece64944c17c2714cfe7ea9971a8c4ab7c (diff)
stats: Enable stats for sgsn, gbproxy, nitb, bsc, nat
This commit initialises and enables the stats subsystem for the given binaries. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/osmo-bsc_nat')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 18343dd..816ae58 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -56,6 +56,7 @@
#include <osmocom/core/application.h>
#include <osmocom/core/talloc.h>
+#include <osmocom/core/stats.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/gsm/gsm0808.h>
@@ -64,6 +65,7 @@
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/stats.h>
#include <osmocom/vty/ports.h>
#include <osmocom/sccp/sccp.h>
@@ -1613,6 +1615,7 @@ int main(int argc, char **argv)
vty_info.copyright = openbsc_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(&log_info);
+ osmo_stats_vty_add_cmds(&log_info);
bsc_nat_vty_init(nat);
@@ -1621,6 +1624,7 @@ int main(int argc, char **argv)
handle_options(argc, argv);
rate_ctr_init(tall_bsc_ctx);
+ osmo_stats_init(tall_bsc_ctx);
/* init vty and parse */
telnet_init(tall_bsc_ctx, NULL, OSMO_VTY_PORT_BSC_NAT);