ctrl: take both address and port from vty config
Change-Id: Ieca05004255c40287e6427560c2636b39529cf07
This commit is contained in:
parent
63baf960c6
commit
6a6a47f554
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
int bts_ctrl_cmds_install(struct gsm_bts *bts);
|
||||
struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts,
|
||||
const char *bind_addr, uint16_t port);
|
||||
struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts, uint16_t port);
|
||||
|
|
|
@ -88,14 +88,12 @@ err_index:
|
|||
return -ERANGE;
|
||||
}
|
||||
|
||||
struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts,
|
||||
const char *bind_addr, uint16_t port)
|
||||
struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts, uint16_t port)
|
||||
{
|
||||
struct ctrl_handle *hdl;
|
||||
int rc = 0;
|
||||
|
||||
hdl = ctrl_interface_setup_dynip(bts, bind_addr, port,
|
||||
bts_ctrl_node_lookup);
|
||||
hdl = ctrl_interface_setup(bts, port, bts_ctrl_node_lookup);
|
||||
if (!hdl)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ int bts_main(int argc, char **argv)
|
|||
gsmtap_source_add_sink(g_bts->gsmtap.inst);
|
||||
}
|
||||
|
||||
bts_controlif_setup(g_bts, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_BTS);
|
||||
bts_controlif_setup(g_bts, OSMO_CTRL_PORT_BTS);
|
||||
|
||||
rc = telnet_init_dynif(tall_bts_ctx, NULL, vty_get_bind_addr(),
|
||||
g_vty_port_num);
|
||||
|
|
Loading…
Reference in New Issue