Commit 03d4c305 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(build): fix compilation errors with newest version of g++

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 5d9612f9
...@@ -560,8 +560,8 @@ void xgpp_conv::smf_event_exposure_notification_from_openapi( ...@@ -560,8 +560,8 @@ void xgpp_conv::smf_event_exposure_notification_from_openapi(
void xgpp_conv::sm_context_request_from_nas( void xgpp_conv::sm_context_request_from_nas(
const nas_message_t& nas_msg, const nas_message_t& nas_msg,
smf::pdu_session_create_sm_context_request& pcr) { smf::pdu_session_create_sm_context_request& pcr) {
pdu_session_type_t pdu_session_type = { pdu_session_type_t pdu_session_type = {};
.pdu_session_type = PDU_SESSION_TYPE_E_IPV4}; pdu_session_type.pdu_session_type = PDU_SESSION_TYPE_E_IPV4;
// Extended Protocol Discriminator // Extended Protocol Discriminator
pcr.set_epd(nas_msg.header.extended_protocol_discriminator); pcr.set_epd(nas_msg.header.extended_protocol_discriminator);
// Message Type // Message Type
......
...@@ -785,8 +785,8 @@ void smf_app::handle_pdu_session_create_sm_context_request( ...@@ -785,8 +785,8 @@ void smf_app::handle_pdu_session_create_sm_context_request(
std::string n1_sm_message, n1_sm_message_hex; std::string n1_sm_message, n1_sm_message_hex;
nas_message_t decoded_nas_msg = {}; nas_message_t decoded_nas_msg = {};
cause_value_5gsm_e cause_n1 = {cause_value_5gsm_e::CAUSE_0_UNKNOWN}; cause_value_5gsm_e cause_n1 = {cause_value_5gsm_e::CAUSE_0_UNKNOWN};
pdu_session_type_t pdu_session_type = { pdu_session_type_t pdu_session_type = {};
.pdu_session_type = PDU_SESSION_TYPE_E_IPV4}; pdu_session_type.pdu_session_type = PDU_SESSION_TYPE_E_IPV4;
// Step 1. Decode NAS and get the necessary information // Step 1. Decode NAS and get the necessary information
int decoder_rc = smf_n1::get_instance().decode_n1_sm_container( int decoder_rc = smf_n1::get_instance().decode_n1_sm_container(
......
...@@ -310,7 +310,8 @@ void smf_pdu_session::remove_qos_flow(const pfcp::qfi_t& qfi) { ...@@ -310,7 +310,8 @@ void smf_pdu_session::remove_qos_flow(const pfcp::qfi_t& qfi) {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void smf_pdu_session::remove_qos_flow(smf_qos_flow& flow) { void smf_pdu_session::remove_qos_flow(smf_qos_flow& flow) {
std::unique_lock lock(m_pdu_session_mutex); std::unique_lock lock(m_pdu_session_mutex);
pfcp::qfi_t qfi = {.qfi = flow.qfi.qfi}; pfcp::qfi_t qfi = {};
qfi.qfi = flow.qfi.qfi;
flow.deallocate_ressources(); flow.deallocate_ressources();
qos_flows.erase(qfi.qfi); qos_flows.erase(qfi.qfi);
} }
...@@ -4306,7 +4307,8 @@ void smf_context::update_qos_info( ...@@ -4306,7 +4307,8 @@ void smf_context::update_qos_info(
uint16_t length_of_rule_ie = nas_msg.plain.sm.pdu_session_modification_request uint16_t length_of_rule_ie = nas_msg.plain.sm.pdu_session_modification_request
.qosrules.lengthofqosrulesie; .qosrules.lengthofqosrulesie;
pfcp::qfi_t generated_qfi = {.qfi = 0}; pfcp::qfi_t generated_qfi{};
generated_qfi.qfi = 0;
// QOSFlowDescriptions // QOSFlowDescriptions
uint8_t number_of_flow_descriptions = uint8_t number_of_flow_descriptions =
......
...@@ -55,6 +55,8 @@ extern "C" { ...@@ -55,6 +55,8 @@ extern "C" {
#include "nas_message.h" #include "nas_message.h"
} }
using namespace boost::placeholders;
namespace smf { namespace smf {
class smf_qos_flow { class smf_qos_flow {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment