[S] Change in osmo-ttcn3-hacks[master]: smf: Fix wrong HTTP2_Adapter local_port=-1
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43695?usp=email ) Change subject: smf: Fix wrong HTTP2_Adapter local_port=-1 ...................................................................... smf: Fix wrong HTTP2_Adapter local_port=-1 The port number 0 is the one used to let the OS pick an unused local port. Change-Id: I70b5c65cdaa06d111697cd2f4b4473da8cbbc5a0 --- M library/HTTP2_Adapter.ttcn M smf/SMF_Session_CT_5G.ttcn 2 files changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/95/43695/1 diff --git a/library/HTTP2_Adapter.ttcn b/library/HTTP2_Adapter.ttcn index 4d9a750..4156395 100644 --- a/library/HTTP2_Adapter.ttcn +++ b/library/HTTP2_Adapter.ttcn @@ -96,7 +96,7 @@ /* Function to use to connect as client to a remote IPA Server */ function f_http2_adapter_connect(charstring remote_host, IPL4asp_Types.PortNumber remote_port, - charstring local_host, IPL4asp_Types.PortNumber local_port, boolean use_ssl := false, integer idx := 0) + charstring local_host, IPL4asp_Types.PortNumber local_port := 0, boolean use_ssl := false, integer idx := 0) runs on HTTP2_CT { var IPL4asp_Types.Result res; res := HTTP2_CodecPort_CtrlFunct.f_IPL4_connect(HTTP2[idx], remote_host, remote_port, @@ -104,7 +104,7 @@ if (not ispresent(res.connId)) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str(idx, ": Could not connect HTTP2 socket from ", local_host, " port ", local_port, - " to ", remote_host, " port ", remote_port, "; check your configuration")); + " to ", remote_host, " port ", remote_port, "; check your configuration. Result: ", res)); } g_self_conn_id[idx] := res.connId; g_http2_pars[idx] := valueof(ts_HTTP2_Adapter_Params(idx, remote_host, remote_port, local_host, local_port, use_ssl)); diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 575306c..dc49e78 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -196,7 +196,7 @@ end_stream_flag := true, data := body)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); /////////// START MUTUAL EXCLUSION ZONE //////////// /* This code block cannot be executed by more than one component at a time because @@ -294,7 +294,7 @@ end_stream_flag := true, data := body_enc)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); f_http2_adapter_send(http2_tx); /* SMF updates RAN GTPU IP addr+TEID info on UPF: */ @@ -349,7 +349,7 @@ end_stream_flag := true, data := body_enc)); - f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, idx := http2_idx); f_http2_adapter_send(http2_tx); /* SMF deletes PDU Session on UPF: */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43695?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I70b5c65cdaa06d111697cd2f4b4473da8cbbc5a0 Gerrit-Change-Number: 43695 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>
participants (1)
-
pespin