[PATCH] osmocom-bb[fixeria/trx]: trxcon|fake_trx: change default TRX port number to 6700

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Feb 23 10:04:04 UTC 2018


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/6839

to look at the new patch set (#2).

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
---
M src/host/trxcon/trxcon.c
M src/target/fake_trx/fake_trx.py
2 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/39/6839/2

diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 07ab169..0250b72 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -143,7 +143,7 @@
 	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 @@
 {
 	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 962101c..4f6d8c6 100755
--- a/src/target/fake_trx/fake_trx.py
+++ b/src/target/fake_trx/fake_trx.py
@@ -47,7 +47,7 @@
 	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()

-- 
To view, visit https://gerrit.osmocom.org/6839
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I66b5f25aaba3b836448ed29839c39869b5622bed
Gerrit-PatchSet: 2
Gerrit-Project: osmocom-bb
Gerrit-Branch: fixeria/trx
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list