diff options
author | Philipp <pmaier@sysmocom.de> | 2017-01-10 14:49:49 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-01-10 15:45:59 +0000 |
commit | 4723a195081f0f9ff561e360620ee0ade50a2b39 (patch) | |
tree | cce3b4adfdc2b1499397ee2b4953ae86d569d65d /src/common/bts_ctrl_lookup.c | |
parent | 962b33ea9d9640bcd0ed0f18c278cc55207d0f46 (diff) |
CTRL: make the CTRL-Interface IP address configurable
Currently the IP address where the control interface is bound
to is hardcoded to 127.0.0.1. This leads to problems with
multiple instances on one and the same machine. This commit
integrates the ctrl interface bind option into the VTY, so
that we can bind the ctrl interface to any IP address, just
like we do it with the VTY already.
Change-Id: If51e0c645c0789a4f4a8c51737fb81fb12f80829
Diffstat (limited to 'src/common/bts_ctrl_lookup.c')
-rw-r--r-- | src/common/bts_ctrl_lookup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/bts_ctrl_lookup.c b/src/common/bts_ctrl_lookup.c index 3ee9b4a3..f0157e9a 100644 --- a/src/common/bts_ctrl_lookup.c +++ b/src/common/bts_ctrl_lookup.c @@ -87,12 +87,14 @@ err_index: return -ERANGE; } -struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts) +struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts, + const char *bind_addr, uint16_t port) { struct ctrl_handle *hdl; int rc = 0; - hdl = ctrl_interface_setup(bts, OSMO_CTRL_PORT_BTS, bts_ctrl_node_lookup); + hdl = ctrl_interface_setup_dynip(bts, bind_addr, port, + bts_ctrl_node_lookup); if (!hdl) return NULL; |