msuraev has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-upf/+/30673 )

Change subject: ctrl: take both address and port from vty config
......................................................................

ctrl: take both address and port from vty config

Change-Id: Ia652ce820e1299b23055f032f8cd0a87a8d60ba3
---
M src/osmo-pfcp-tool/osmo_pfcp_tool_main.c
M src/osmo-upf/osmo_upf_main.c
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/src/osmo-pfcp-tool/osmo_pfcp_tool_main.c 
b/src/osmo-pfcp-tool/osmo_pfcp_tool_main.c
index e950f7f..9a760d4 100644
--- a/src/osmo-pfcp-tool/osmo_pfcp_tool_main.c
+++ b/src/osmo-pfcp-tool/osmo_pfcp_tool_main.c
@@ -305,7 +305,7 @@
                return 2;

        /* start control interface, after reading config for 
ctrl_vty_get_bind_addr() */
-       g_pfcp_tool->ctrl = ctrl_interface_setup_dynip(g_pfcp_tool, 
ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_PFCP_TOOL, NULL);
+       g_pfcp_tool->ctrl = ctrl_interface_setup(g_pfcp_tool, 
OSMO_CTRL_PORT_PFCP_TOOL, NULL);
        if (!g_pfcp_tool->ctrl) {
                fprintf(stderr, "Failed to initialize control interface. 
Exiting.\n");
                return -1;
diff --git a/src/osmo-upf/osmo_upf_main.c b/src/osmo-upf/osmo_upf_main.c
index 65a0e84..40dbf09 100644
--- a/src/osmo-upf/osmo_upf_main.c
+++ b/src/osmo-upf/osmo_upf_main.c
@@ -310,7 +310,7 @@
                return 2;

        /* start control interface, after reading config for 
ctrl_vty_get_bind_addr() */
-       g_upf->ctrl = ctrl_interface_setup_dynip(g_upf, 
ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_UPF, NULL);
+       g_upf->ctrl = ctrl_interface_setup(g_upf, OSMO_CTRL_PORT_UPF, NULL);
        if (!g_upf->ctrl) {
                fprintf(stderr, "Failed to initialize control interface. 
Exiting.\n");
                return -1;

--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/30673
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: Ia652ce820e1299b23055f032f8cd0a87a8d60ba3
Gerrit-Change-Number: 30673
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: msuraev <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to