aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-24 16:57:59 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-24 16:59:07 +0200
commit993575bcd8ecb03a06cf5c5e507f4eceba91d40c (patch)
treece7041c43d766f614176e6434613216a7232ccba
parent0ff0f2d00f37cd82a21e4638d15a8bb736419c8a (diff)
use libocmocore #defines for VTY port numbers
-rw-r--r--src/osmo-bts-sysmo/main.c3
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c
index 569b488..51619ee 100644
--- a/src/osmo-bts-sysmo/main.c
+++ b/src/osmo-bts-sysmo/main.c
@@ -37,6 +37,7 @@
#include <osmocom/core/application.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/ports.h>
#include <osmo-bts/gsm_data.h>
#include <osmo-bts/logging.h>
@@ -354,7 +355,7 @@ int main(int argc, char **argv)
bts_controlif_setup(bts);
sysmobts_ctrlif_inst_cmds();
- rc = telnet_init(tall_bts_ctx, NULL, 4241);
+ rc = telnet_init(tall_bts_ctx, NULL, OSMO_VTY_PORT_BTS);
if (rc < 0) {
fprintf(stderr, "Error initializing telnet\n");
exit(1);
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c
index 484e08f..ea83fb6 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c
@@ -35,6 +35,7 @@
#include <osmocom/core/msgb.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/ports.h>
#include "misc/sysmobts_misc.h"
#include "misc/sysmobts_mgr.h"
@@ -267,7 +268,7 @@ int main(int argc, char **argv)
exit(1);
}
- rc = telnet_init(tall_msgb_ctx, NULL, 4252);
+ rc = telnet_init(tall_msgb_ctx, NULL, OSMO_VTY_PORT_BTSMGR);
if (rc < 0) {
fprintf(stderr, "Error initializing telnet\n");
exit(1);