2020-05-25 16:15:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of Open5GS.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-06-17 05:22:28 +00:00
|
|
|
#ifndef AMF_NGAP_BUILD_H
|
|
|
|
#define AMF_NGAP_BUILD_H
|
2020-05-25 16:15:22 +00:00
|
|
|
|
|
|
|
#include "context.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-06-04 18:12:05 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_ng_setup_response(void);
|
|
|
|
ogs_pkbuf_t *ngap_build_ng_setup_failure(
|
2020-05-25 16:15:22 +00:00
|
|
|
NGAP_Cause_PR group, long cause, long time_to_wait);
|
|
|
|
|
2021-04-16 07:26:13 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_ran_configuration_update_ack(void);
|
|
|
|
ogs_pkbuf_t *ngap_build_ran_configuration_update_failure(
|
|
|
|
NGAP_Cause_PR group, long cause, long time_to_wait);
|
|
|
|
|
2020-05-25 16:15:22 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_downlink_nas_transport(
|
2021-01-08 03:26:06 +00:00
|
|
|
ran_ue_t *ran_ue, ogs_pkbuf_t *gmmbuf, bool ue_ambr, bool allowed_nssai);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-08 03:26:06 +00:00
|
|
|
ogs_pkbuf_t *ngap_ue_build_initial_context_setup_request(
|
2020-06-04 18:12:05 +00:00
|
|
|
amf_ue_t *amf_ue, ogs_pkbuf_t *gmmbuf);
|
2022-11-23 11:49:37 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_ue_context_modification_request(amf_ue_t *amf_ue);
|
2021-01-08 03:26:06 +00:00
|
|
|
ogs_pkbuf_t *ngap_sess_build_initial_context_setup_request(
|
2024-01-13 14:10:17 +00:00
|
|
|
ran_ue_t *ran_ue, amf_sess_t *sess,
|
|
|
|
ogs_pkbuf_t *gmmbuf, ogs_pkbuf_t *n2smbuf);
|
2020-05-25 16:15:22 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_ue_context_release_command(
|
2020-06-04 18:12:05 +00:00
|
|
|
ran_ue_t *ran_ue, NGAP_Cause_PR group, long cause);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-08 03:26:06 +00:00
|
|
|
ogs_pkbuf_t *ngap_ue_build_pdu_session_resource_setup_request(
|
|
|
|
amf_ue_t *amf_ue, ogs_pkbuf_t *gmmbuf);
|
|
|
|
ogs_pkbuf_t *ngap_sess_build_pdu_session_resource_setup_request(
|
2024-01-13 14:10:17 +00:00
|
|
|
ran_ue_t *ran_ue, amf_sess_t *sess,
|
|
|
|
ogs_pkbuf_t *gmmbuf, ogs_pkbuf_t *n2smbuf);
|
2021-01-01 02:07:08 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_pdu_session_resource_modify_request(
|
|
|
|
amf_sess_t *sess, ogs_pkbuf_t *gmmbuf, ogs_pkbuf_t *n2smbuf);
|
2020-07-02 05:50:23 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_pdu_session_resource_release_command(
|
|
|
|
amf_sess_t *sess, ogs_pkbuf_t *gmmbuf, ogs_pkbuf_t *n2smbuf);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-18 16:48:35 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_paging(amf_ue_t *amf_ue);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-28 19:23:54 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_downlink_ran_configuration_transfer(
|
|
|
|
NGAP_SONConfigurationTransfer_t *transfer);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-04 04:29:01 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_path_switch_ack(amf_ue_t *amf_ue);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-28 19:23:54 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_handover_request(ran_ue_t *target_ue);
|
2020-05-25 16:15:22 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_handover_preparation_failure(
|
2020-06-04 18:12:05 +00:00
|
|
|
ran_ue_t *source_ue, NGAP_Cause_t *cause);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2021-01-28 19:23:54 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_handover_command(ran_ue_t *source_ue);
|
|
|
|
ogs_pkbuf_t *ngap_build_handover_cancel_ack(ran_ue_t *source_ue);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2023-01-25 14:16:59 +00:00
|
|
|
ogs_pkbuf_t *ngap_build_downlink_ran_status_transfer(
|
2020-06-04 18:12:05 +00:00
|
|
|
ran_ue_t *target_ue,
|
2021-01-28 19:23:54 +00:00
|
|
|
NGAP_RANStatusTransfer_TransparentContainer_t *transfer);
|
2020-05-25 16:15:22 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-06-17 05:22:28 +00:00
|
|
|
#endif /* AMF_NGAP_BUILD_H */
|