aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gprs/gb_proxy_main.c3
-rw-r--r--src/gprs/gtphub_main.c3
-rw-r--r--src/gprs/sgsn_main.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/gprs/gb_proxy_main.c b/src/gprs/gb_proxy_main.c
index 9f9c6051e..6f624006f 100644
--- a/src/gprs/gb_proxy_main.c
+++ b/src/gprs/gb_proxy_main.c
@@ -51,6 +51,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/ports.h>
+#include <osmocom/vty/misc.h>
#include "../../bscconfig.h"
@@ -256,6 +257,7 @@ int main(int argc, char **argv)
tall_bsc_ctx = talloc_named_const(NULL, 0, "nsip_proxy");
msgb_talloc_ctx_init(tall_bsc_ctx, 0);
+ vty_info.tall_ctx = tall_bsc_ctx;
signal(SIGINT, &signal_handler);
signal(SIGTERM, &signal_handler);
@@ -269,6 +271,7 @@ int main(int argc, char **argv)
vty_info.copyright = openbsc_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);
+ osmo_talloc_vty_add_cmds();
osmo_stats_vty_add_cmds(&gprs_log_info);
gbproxy_vty_init();
diff --git a/src/gprs/gtphub_main.c b/src/gprs/gtphub_main.c
index 3f7de5071..197c5e3ba 100644
--- a/src/gprs/gtphub_main.c
+++ b/src/gprs/gtphub_main.c
@@ -38,6 +38,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/ports.h>
+#include <osmocom/vty/misc.h>
#include <osmocom/sgsn/debug.h>
#include <osmocom/sgsn/gtphub.h>
@@ -336,6 +337,7 @@ int main(int argc, char **argv)
osmo_gtphub_ctx = talloc_named_const(NULL, 0, "osmo_gtphub");
msgb_talloc_ctx_init(osmo_gtphub_ctx, 0);
+ vty_info.tall_ctx = osmo_gtphub_ctx;
signal(SIGINT, &signal_handler);
signal(SIGTERM, &signal_handler);
@@ -349,6 +351,7 @@ int main(int argc, char **argv)
vty_info.copyright = gtphub_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);
+ osmo_talloc_vty_add_cmds();
gtphub_vty_init(hub, cfg);
rate_ctr_init(osmo_gtphub_ctx);
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c
index b2a028c43..0276e34a8 100644
--- a/src/gprs/sgsn_main.c
+++ b/src/gprs/sgsn_main.c
@@ -49,6 +49,7 @@
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
#include <osmocom/vty/ports.h>
+#include <osmocom/vty/misc.h>
#include <osmocom/ctrl/control_vty.h>
@@ -376,6 +377,7 @@ int main(int argc, char **argv)
srand(time(NULL));
tall_bsc_ctx = talloc_named_const(NULL, 0, "osmo_sgsn");
msgb_talloc_ctx_init(tall_bsc_ctx, 0);
+ vty_info.tall_ctx = tall_bsc_ctx;
signal(SIGINT, &signal_handler);
signal(SIGTERM, &signal_handler);
@@ -390,6 +392,7 @@ int main(int argc, char **argv)
vty_info.copyright = openbsc_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);
+ osmo_talloc_vty_add_cmds();
osmo_stats_vty_add_cmds(&gprs_log_info);
sgsn_vty_init(&sgsn_inst.cfg);
ctrl_vty_init(tall_bsc_ctx);