lte/gateway/c/core/oai/test/amf/amf_app_test_util.cpp
/* Create registration mode complete response from ue */
Create registration mode complete response from ue
Create registration mode complete response from ue
int send_uplink_nas_registration_complete(
    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 ue_registration_complete;
  tai_t originating_tai = {};
  ue_registration_complete = 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, ue_registration_complete, ue_id, originating_tai);
  return (rc);
}
int send_uplink_nas_registration_complete ( 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 ue_registration_complete ; tai_t originating_tai = { } ; ue_registration_complete = 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 , ue_registration_complete , ue_id , originating_tai ) ; return ( rc ) ; }
Create registration mode complete response from ue
Create registration mode complete response from ue