Commit dacb523b authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

fix issue for SD

parent d6e36d7d
...@@ -383,8 +383,7 @@ void amf_n2::handle_itti_message( ...@@ -383,8 +383,7 @@ void amf_n2::handle_itti_message(
// encode NG SETUP FAILURE MESSAGE and send back // encode NG SETUP FAILURE MESSAGE and send back
uint8_t* buffer = (uint8_t*) calloc(1, BUFFER_SIZE_1024); uint8_t* buffer = (uint8_t*) calloc(1, BUFFER_SIZE_1024);
NGSetupFailureMsg ngSetupFailure; NGSetupFailureMsg ngSetupFailure;
ngSetupFailure.setCauseRadioNetwork( ngSetupFailure.set(Ngap_CauseRadioNetwork_unspecified, Ngap_TimeToWait_v5s);
Ngap_CauseRadioNetwork_unspecified, Ngap_TimeToWait_v5s);
int encoded = int encoded =
ngSetupFailure.encode2Buffer((uint8_t*) buffer, BUFFER_SIZE_1024); ngSetupFailure.encode2Buffer((uint8_t*) buffer, BUFFER_SIZE_1024);
......
...@@ -94,8 +94,7 @@ void NGSetupFailureMsg::set( ...@@ -94,8 +94,7 @@ void NGSetupFailureMsg::set(
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void NGSetupFailureMsg::setCauseRadioNetwork( void NGSetupFailureMsg::set(const e_Ngap_CauseRadioNetwork& cause_value) {
const e_Ngap_CauseRadioNetwork& cause_value) {
cause.setChoiceOfCause(Ngap_Cause_PR_radioNetwork); cause.setChoiceOfCause(Ngap_Cause_PR_radioNetwork);
cause.setValue(cause_value); cause.setValue(cause_value);
addCauseIE(); addCauseIE();
......
...@@ -39,7 +39,7 @@ class NGSetupFailureMsg : public NgapMessage { ...@@ -39,7 +39,7 @@ class NGSetupFailureMsg : public NgapMessage {
void set( void set(
const e_Ngap_CauseRadioNetwork& cause_value, const e_Ngap_CauseRadioNetwork& cause_value,
const e_Ngap_TimeToWait& time_to_wait); const e_Ngap_TimeToWait& time_to_wait);
void setCauseRadioNetwork(const e_Ngap_CauseRadioNetwork& cause_value); void set(const e_Ngap_CauseRadioNetwork& cause_value);
bool getCauseRadioNetwork(e_Ngap_CauseRadioNetwork&); bool getCauseRadioNetwork(e_Ngap_CauseRadioNetwork&);
void setCauseTransport( void setCauseTransport(
......
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