Skip to content
Snippets Groups Projects
Commit 9c683c38 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

use option interface with Curl to select the source IP addr or Curl (when the...

use option interface with Curl to select the source IP addr or Curl (when the NF has multiple interfaces)
parent 1814d841
No related branches found
No related tags found
1 merge request!3Bug fixes for various issues before finalizing PDU Session Establishment procedure
...@@ -136,6 +136,7 @@ bool smf_n10::get_sm_data( ...@@ -136,6 +136,7 @@ bool smf_n10::get_sm_data(
curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1); curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, UDM_CURL_TIMEOUT_MS); curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, UDM_CURL_TIMEOUT_MS);
curl_easy_setopt(curl, CURLOPT_INTERFACE, smf_cfg.sbi.if_name.c_str());
// Response information. // Response information.
long httpCode = { 0 }; long httpCode = { 0 };
......
...@@ -217,7 +217,7 @@ void smf_n11::send_n1n2_message_transfer_request( ...@@ -217,7 +217,7 @@ void smf_n11::send_n1n2_message_transfer_request(
curl_easy_setopt(curl, CURLOPT_URL, context_res_msg.get_amf_url().c_str()); curl_easy_setopt(curl, CURLOPT_URL, context_res_msg.get_amf_url().c_str());
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1); curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, AMF_CURL_TIMEOUT_MS); curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, AMF_CURL_TIMEOUT_MS);
curl_easy_setopt(curl, CURLOPT_INTERFACE, "eno1:smf"); //TODO: enable this only for testing in all-in-one scenario curl_easy_setopt(curl, CURLOPT_INTERFACE, smf_cfg.sbi.if_name.c_str());
mime = curl_mime_init(curl); mime = curl_mime_init(curl);
alt = curl_mime_init(curl); alt = curl_mime_init(curl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment