aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-21 11:55:04 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-21 15:18:02 +0200
commit2aea8704f391675a704d0431497cf0100ca76b9a (patch)
tree53f9cece7765b0eea981a0d25b5d53a99705589c /src
parent604e0711596e7e06600a2d7aea3394d36e5d3bda (diff)
Use TCP port numbers for VTY that don't overlap with other Osmocom Software
osmo-pcap for historical reasons uses the same port numbers as OsmoPCU and OsmoBTS. This leads to problems when wanting to run related software together on one system. Let's break the historical assumptions and start with non-overlapping port numbers that are allocated/assigned from https://osmocom.org/projects/cellular-infrastructure/wiki/Port_Numbers Change-Id: I638ac0534517931d0987ce9f72f5db4f5b6c16b7
Diffstat (limited to 'src')
-rw-r--r--src/osmo_client_main.c2
-rw-r--r--src/osmo_server_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c
index 89d7e04..46a49b5 100644
--- a/src/osmo_client_main.c
+++ b/src/osmo_client_main.c
@@ -206,7 +206,7 @@ int main(int argc, char **argv)
osmo_tls_init();
- rc = telnet_init(tall_bsc_ctx, NULL, 4240);
+ rc = telnet_init(tall_bsc_ctx, NULL, OSMO_VTY_PORT_PCAP_CLIENT);
if (rc < 0) {
LOGP(DCLIENT, LOGL_ERROR, "Failed to bind telnet interface\n");
exit(1);
diff --git a/src/osmo_server_main.c b/src/osmo_server_main.c
index 37a9632..95f3ce1 100644
--- a/src/osmo_server_main.c
+++ b/src/osmo_server_main.c
@@ -219,7 +219,7 @@ int main(int argc, char **argv)
osmo_tls_init();
- rc = telnet_init(tall_bsc_ctx, NULL, 4241);
+ rc = telnet_init(tall_bsc_ctx, NULL, OSMO_VTY_PORT_PCAP_SERVER);
if (rc < 0) {
LOGP(DCLIENT, LOGL_ERROR, "Failed to bind telnet interface\n");
exit(1);