lte/gateway/c/core/oai/test/amf/amf_app_test_util.cpp
/* Create pdu session release message from ue */
Create pdu session release message from ue
Create pdu session release message from ue
int send_uplink_nas_pdu_session_release_message(
    amf_app_desc_t* amf_app_desc_p, amf_ue_ngap_id_t ue_id, const plmn_t& plmn,
    const uint8_t* nas_msg, uint8_t nas_msg_length) {
  bstring pdu_session_req;
  tai_t originating_tai = {};
  if ((!amf_app_desc_p) || (!nas_msg) || (nas_msg_length == 0)) {
    return RETURNerror;
  }
  pdu_session_req = blk2bstr(nas_msg, nas_msg_length);
  originating_tai.plmn = plmn;
  originating_tai.tac  = 1;
  int rc = RETURNerror;
  rc     = amf_app_handle_uplink_nas_message(
      amf_app_desc_p, pdu_session_req, ue_id, originating_tai);
  return (rc);
}
int send_uplink_nas_pdu_session_release_message ( amf_app_desc_t * amf_app_desc_p , amf_ue_ngap_id_t ue_id , const plmn_t & plmn , const uint8_t * nas_msg , uint8_t nas_msg_length ) { bstring pdu_session_req ; tai_t originating_tai = { } ; if ( ( ! amf_app_desc_p ) || ( ! nas_msg ) || ( nas_msg_length == 0 ) ) { return RETURNerror ; } pdu_session_req = blk2bstr ( nas_msg , nas_msg_length ) ; originating_tai . plmn = plmn ; originating_tai . tac = 1 ; int rc = RETURNerror ; rc = amf_app_handle_uplink_nas_message ( amf_app_desc_p , pdu_session_req , ue_id , originating_tai ) ; return ( rc ) ; }
Create pdu session release message from ue
Create pdu session release message from ue