/* * Copyright (C) 2019,2020 by Sukchan Lee * * 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 . */ #ifndef AMF_NAS_5GS_PATH_H #define AMF_NAS_5GS_PATH_H #include "gmm-build.h" #ifdef __cplusplus extern "C" { #endif #define AMF_NAS_BACKOFF_TIME 6 /* 6 seconds */ int nas_5gs_send_to_gnb(amf_ue_t *amf_ue, ogs_pkbuf_t *pkbuf); int nas_5gs_send_to_downlink_nas_transport( ran_ue_t *ran_ue, ogs_pkbuf_t *pkbuf); int nas_5gs_send_registration_accept(amf_ue_t *amf_ue); int nas_5gs_send_registration_reject( ran_ue_t *ran_ue, amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); int nas_5gs_send_service_accept(amf_ue_t *amf_ue); int nas_5gs_send_service_reject( ran_ue_t *ran_ue, amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); int nas_5gs_send_de_registration_accept(amf_ue_t *amf_ue); int nas_5gs_send_de_registration_request( amf_ue_t *amf_ue, OpenAPI_deregistration_reason_e dereg_reason, ogs_nas_5gmm_cause_t gmm_cause); int nas_5gs_send_identity_request(amf_ue_t *amf_ue); int nas_5gs_send_authentication_request(amf_ue_t *amf_ue); int nas_5gs_send_authentication_reject(amf_ue_t *amf_ue); int nas_5gs_send_security_mode_command(amf_ue_t *amf_ue); int nas_5gs_send_configuration_update_command( amf_ue_t *amf_ue, gmm_configuration_update_command_param_t *param); int nas_send_pdu_session_setup_request(amf_sess_t *sess, ogs_pkbuf_t *n1smbuf, ogs_pkbuf_t *n2smbuf); int nas_send_pdu_session_modification_command(amf_sess_t *sess, ogs_pkbuf_t *n1smbuf, ogs_pkbuf_t *n2smbuf); int nas_send_pdu_session_release_command(amf_sess_t *sess, ogs_pkbuf_t *n1smbuf, ogs_pkbuf_t *n2smbuf); int nas_5gs_send_gmm_status(amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t cause); int nas_5gs_send_gmm_reject( ran_ue_t *ran_ue, amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); int nas_5gs_send_gmm_reject_from_sbi(amf_ue_t *amf_ue, int status); int nas_5gs_send_dl_nas_transport(ran_ue_t *ran_ue, amf_sess_t *sess, uint8_t payload_container_type, ogs_pkbuf_t *payload_container, ogs_nas_5gmm_cause_t cause, uint8_t backoff_time); int nas_5gs_send_gsm_reject(ran_ue_t *ran_ue, amf_sess_t *sess, uint8_t payload_container_type, ogs_pkbuf_t *payload_container); int nas_5gs_send_back_gsm_message( ran_ue_t *ran_ue, amf_sess_t *sess, ogs_nas_5gmm_cause_t cause, uint8_t backoff_time); #ifdef __cplusplus } #endif #endif /* AMF_NAS_5GS_PATH_H */