summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-22 16:10:01 +0100
committerVadim Yanitskiy <axilirator@gmail.com>2018-02-23 17:02:20 +0700
commit05ea7248f8e6c1aed7665efa82eeb92264027f86 (patch)
tree7eb63b8413e54b6c7a624ef4ff8e1e676301432c
parent318f8b78aad5961eba6b179f84e772bff759ade3 (diff)
trxcon|fake_trx: change default TRX port number to 6700
In order to avoid clashes with OsmoTRX, which may be also running on the same host, let's use a different port range starting from 6700 by default. This idea was introduced as a result of OS#2984. Change-Id: I66b5f25aaba3b836448ed29839c39869b5622bed Related: OS#2984
-rw-r--r--src/host/trxcon/trxcon.c4
-rwxr-xr-xsrc/target/fake_trx/fake_trx.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 07ab1698..0250b726 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -143,7 +143,7 @@ static void print_help(void)
printf(" -h --help this text\n");
printf(" -d --debug Change debug flags. Default: %s\n", DEBUG_DEFAULT);
printf(" -i --trx-ip IP address of host runing TRX (default 127.0.0.1)\n");
- printf(" -p --trx-port Base port of TRX instance (default 5700)\n");
+ printf(" -p --trx-port Base port of TRX instance (default 6700)\n");
printf(" -f --trx-advance Scheduler clock advance (default 20)\n");
printf(" -s --socket Listening socket for layer23 (default /tmp/osmocom_l2)\n");
printf(" -D --daemonize Run as daemon\n");
@@ -203,7 +203,7 @@ static void init_defaults(void)
{
app_data.bind_socket = "/tmp/osmocom_l2";
app_data.trx_ip = "127.0.0.1";
- app_data.trx_base_port = 5700;
+ app_data.trx_base_port = 6700;
app_data.trx_fn_advance = 20;
app_data.debug_mask = NULL;
diff --git a/src/target/fake_trx/fake_trx.py b/src/target/fake_trx/fake_trx.py
index 962101c3..4f6d8c6b 100755
--- a/src/target/fake_trx/fake_trx.py
+++ b/src/target/fake_trx/fake_trx.py
@@ -47,7 +47,7 @@ class Application:
bts_addr = "127.0.0.1"
bb_addr = "127.0.0.1"
bts_base_port = 5700
- bb_base_port = 5703
+ bb_base_port = 6700
def __init__(self):
self.print_copyright()