summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-28 22:52:47 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-01 14:42:25 +0100
commite014ee1ed3bcd2c4ecd5d55259029ff3f78046b4 (patch)
tree69add62f735258a84a774a34c624e1e23e401a97
parent0d3030c76405fbcf3d8cbcb61547eee53aec02b3 (diff)
fake_trx: Log IP/Port information at start-uplaforge/trx
-rw-r--r--src/target/fake_trx/ctrl_if_bb.py2
-rw-r--r--src/target/fake_trx/ctrl_if_bts.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/target/fake_trx/ctrl_if_bb.py b/src/target/fake_trx/ctrl_if_bb.py
index c0c2fb7..15a7eb0 100644
--- a/src/target/fake_trx/ctrl_if_bb.py
+++ b/src/target/fake_trx/ctrl_if_bb.py
@@ -33,7 +33,7 @@ class CTRLInterfaceBB(CTRLInterface):
pm = None
def __init__(self, remote_addr, remote_port, bind_port):
- print("[i] Init CTRL interface for BB")
+ print("[i] Init CTRL interface for BB (L:%u <-> R:%s:%u)" % (bind_port, remote_addr, remote_port))
CTRLInterface.__init__(self, remote_addr, remote_port, bind_port)
def parse_cmd(self, request):
diff --git a/src/target/fake_trx/ctrl_if_bts.py b/src/target/fake_trx/ctrl_if_bts.py
index e0a6ada..53b9acb 100644
--- a/src/target/fake_trx/ctrl_if_bts.py
+++ b/src/target/fake_trx/ctrl_if_bts.py
@@ -34,7 +34,7 @@ class CTRLInterfaceBTS(CTRLInterface):
pm = None
def __init__(self, remote_addr, remote_port, bind_port):
- print("[i] Init CTRL interface for BTS")
+ print("[i] Init CTRL interface for BTSB (L:%u <-> R:%s:%u)" % (bind_port, remote_addr, remote_port))
CTRLInterface.__init__(self, remote_addr, remote_port, bind_port)
def parse_cmd(self, request):