aboutsummaryrefslogtreecommitdiffstats
path: root/python/trx/ctrl_if_bb.py
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-08-10 00:20:03 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-08-10 16:38:59 +0700
commit473b35be863e240747ae3dfcc006d3a4eb4be619 (patch)
treee9d4fd39a56cb67e30021fe250dfec1efb8e45a9 /python/trx/ctrl_if_bb.py
parent5394c6012d05d6565d1374e1c7a67b3f5f2decc6 (diff)
apps/grgsm_trx: introduce bind address option
The new option (-b --bind-addr) allows one to specify the bind address for both DATA and CTRL interfaces. By default, '0.0.0.0' is used, so there are no restrictions for the L1 source address. Change-Id: I3339f686b53db07cfd1bff9a516f4bdc28058cd9
Diffstat (limited to 'python/trx/ctrl_if_bb.py')
-rw-r--r--python/trx/ctrl_if_bb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/trx/ctrl_if_bb.py b/python/trx/ctrl_if_bb.py
index 7886e23..f5a9fa3 100644
--- a/python/trx/ctrl_if_bb.py
+++ b/python/trx/ctrl_if_bb.py
@@ -26,9 +26,10 @@ import grgsm
from ctrl_if import ctrl_if
class ctrl_if_bb(ctrl_if):
- def __init__(self, remote_addr, remote_port, bind_port, tb, pm):
+ def __init__(self, remote_addr, remote_port, bind_addr, bind_port, tb, pm):
print("[i] Init CTRL interface")
- ctrl_if.__init__(self, remote_addr, remote_port, bind_port)
+ ctrl_if.__init__(self, remote_addr, remote_port,
+ bind_addr, bind_port)
# Set link to the follow graph (top block)
self.tb = tb