/* * 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( amf_ue_t *amf_ue, ogs_pkbuf_t *pkbuf); void nas_5gs_send_registration_accept(amf_ue_t *amf_ue); void nas_5gs_send_registration_reject( amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); void nas_5gs_send_service_accept(amf_ue_t *amf_ue); void nas_5gs_send_service_reject( amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); void nas_5gs_send_accept(amf_ue_t *amf_ue); void nas_5gs_send_de_registration_accept(amf_ue_t *amf_ue); void nas_5gs_send_identity_request(amf_ue_t *amf_ue); void nas_5gs_send_authentication_request(amf_ue_t *amf_ue); void nas_5gs_send_authentication_reject(amf_ue_t *amf_ue); void nas_5gs_send_security_mode_command(amf_ue_t *amf_ue); void nas_5gs_send_configuration_update_command( amf_ue_t *amf_ue, gmm_configuration_update_command_param_t *param); void nas_send_pdu_session_release_command(amf_sess_t *sess, ogs_pkbuf_t *n1smbuf, ogs_pkbuf_t *n2smbuf); void nas_5gs_send_gmm_status(amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t cause); void nas_5gs_send_gmm_reject( amf_ue_t *amf_ue, ogs_nas_5gmm_cause_t gmm_cause); void nas_5gs_send_gmm_reject_from_sbi(amf_ue_t *amf_ue, int status); void nas_5gs_send_gsm_reject(amf_sess_t *sess, uint8_t payload_container_type, ogs_pkbuf_t *payload_container, ogs_nas_5gmm_cause_t cause, uint8_t backoff_time); void nas_5gs_send_gsm_reject_from_sbi(amf_sess_t *sess, uint8_t payload_container_type, ogs_pkbuf_t *payload_container, int status); void nas_5gs_send_back_5gsm_message( amf_sess_t *sess, ogs_nas_5gmm_cause_t gmm_cause); void nas_5gs_send_back_5gsm_message_from_sbi(amf_sess_t *sess, int status); #if 0 void nas_5gs_send_tau_accept( amf_ue_t *amf_ue, S1AP_ProcedureCode_t procedureCode); void nas_5gs_send_tau_reject(amf_ue_t *amf_ue, ogs_nas_5gsm_cause_t gmm_cause); void nas_5gs_send_cs_service_notification(amf_ue_t *amf_ue); void nas_5gs_send_downlink_nas_transport( amf_ue_t *amf_ue, uint8_t *buffer, uint8_t length); #endif #ifdef __cplusplus } #endif #endif /* AMF_NAS_5GS_PATH_H */