aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2022-12-03 17:59:19 +0300
committerMax <msuraev@sysmocom.de>2022-12-20 14:23:04 +0300
commit3f79ce8f232ae1aa47a899df67dc067a891f9780 (patch)
tree73fc9af9af88b69f3fb6e2f7e6fa23d5ea31c951 /utils
parent7a79dd3dab4986ce159a42907cb074c6d25b856b (diff)
ctrl: add optional port to bind command
So far ctrl interface did not allow to specify port to bind to. Let's fix this and make it consistent with the way vty bind works. N. B: the functions which ignore port configured via vty are marked as deprecated, the sw which uses them should be ported to either newly added ctrl_init_default() or simplified ctrl_interface_setup() The similar change for vty interface will be addressed via separate patch series. Related: OS#5809 Change-Id: I0fd87fd41fd3ac975273968d24f477daa3cd3aa9
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-ns-dummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/osmo-ns-dummy.c b/utils/osmo-ns-dummy.c
index a85775ee..e2662a25 100644
--- a/utils/osmo-ns-dummy.c
+++ b/utils/osmo-ns-dummy.c
@@ -280,7 +280,7 @@ int main (int argc, char *argv[])
}
if (ctrl_port > 0) {
- ctrl = ctrl_interface_setup_dynip(NULL, ctrl_vty_get_bind_addr(), ctrl_port, NULL);
+ ctrl = ctrl_interface_setup(NULL, ctrl_port, NULL);
if (!ctrl) {
fprintf(stderr, "Failed to initialize control interface. Exiting.\n");
exit(1);