open5gs/src/mme/s1ap-path.h

103 lines
3.4 KiB
C
Raw Normal View History

2019-06-01 09:52:38 +00:00
/*
* Copyright (C) 2019 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/>.
*/
#ifndef S1AP_PATH_H
#define S1AP_PATH_H
2017-02-13 05:17:26 +00:00
2019-06-11 13:10:47 +00:00
#include "mme-context.h"
#include "mme-event.h"
2017-02-13 05:17:26 +00:00
#ifdef __cplusplus
extern "C" {
2019-06-16 02:25:41 +00:00
#endif
2017-02-13 05:17:26 +00:00
#define S1AP_NON_UE_SIGNALLING 0
#define s1ap_event_push mme_sctp_event_push
int s1ap_open(void);
void s1ap_close(void);
2017-11-24 02:49:37 +00:00
2019-06-01 09:43:33 +00:00
ogs_sock_t *s1ap_server(ogs_socknode_t *node);
void s1ap_recv_upcall(short when, ogs_socket_t fd, void *data);
2017-11-24 15:04:45 +00:00
2019-04-27 14:54:30 +00:00
int s1ap_send_to_enb(
mme_enb_t *enb, ogs_pkbuf_t *pkb, uint16_t stream_no);
int s1ap_send_to_enb_ue(enb_ue_t *enb_ue, ogs_pkbuf_t *pkbuf);
int s1ap_delayed_send_to_enb_ue(enb_ue_t *enb_ue,
ogs_pkbuf_t *pkbuf, ogs_time_t duration);
int s1ap_send_to_nas(enb_ue_t *enb_ue,
2018-03-05 14:01:07 +00:00
S1AP_ProcedureCode_t procedureCode, S1AP_NAS_PDU_t *nasPdu);
int s1ap_send_to_esm(
mme_ue_t *mme_ue, ogs_pkbuf_t *esmbuf,
uint8_t nas_type, int create_action);
int s1ap_send_s1_setup_response(mme_enb_t *enb);
int s1ap_send_s1_setup_failure(
mme_enb_t *enb, S1AP_Cause_PR group, long cause);
int s1ap_send_initial_context_setup_request(mme_ue_t *mme_ue);
int s1ap_send_ue_context_modification_request(mme_ue_t *mme_ue);
int s1ap_send_ue_context_release_command(
2018-03-05 14:01:07 +00:00
enb_ue_t *enb_ue, S1AP_Cause_PR group, long cause,
2021-01-28 19:23:54 +00:00
uint8_t action, ogs_time_t duration);
2017-02-13 05:17:26 +00:00
2021-06-06 13:35:46 +00:00
int s1ap_send_paging(mme_ue_t *mme_ue, S1AP_CNDomain_t cn_domain);
2019-07-08 09:15:19 +00:00
int s1ap_send_mme_configuration_transfer(
mme_enb_t *target_enb,
S1AP_SONConfigurationTransfer_t *SONConfigurationTransfer);
int s1ap_send_e_rab_modification_confirm(mme_ue_t *mme_ue);
int s1ap_send_path_switch_ack(mme_ue_t *mme_ue);
int s1ap_send_handover_command(enb_ue_t *source_ue);
int s1ap_send_handover_preparation_failure(
enb_ue_t *source_ue, S1AP_Cause_PR group, long cause);
int s1ap_send_handover_request(
2021-01-28 19:23:54 +00:00
enb_ue_t *source_ue, mme_enb_t *target_enb,
S1AP_HandoverType_t *handovertype, S1AP_Cause_t *cause,
2018-03-13 14:16:01 +00:00
S1AP_Source_ToTarget_TransparentContainer_t
*source_totarget_transparentContainer);
int s1ap_send_handover_cancel_ack(enb_ue_t *source_ue);
2017-09-15 03:06:26 +00:00
int s1ap_send_mme_status_transfer(
2018-03-13 14:16:01 +00:00
enb_ue_t *target_ue,
S1AP_ENB_StatusTransfer_TransparentContainer_t
*enb_statustransfer_transparentContainer);
int s1ap_send_error_indication(
2018-03-12 14:06:14 +00:00
mme_enb_t *enb,
S1AP_MME_UE_S1AP_ID_t *mme_ue_s1ap_id,
S1AP_ENB_UE_S1AP_ID_t *enb_ue_s1ap_id,
2018-03-14 08:59:56 +00:00
S1AP_Cause_PR group, long cause);
int s1ap_send_error_indication2(
2020-09-08 02:02:45 +00:00
mme_ue_t *mme_ue, S1AP_Cause_PR group, long cause);
int s1ap_send_s1_reset_ack(
2018-03-21 07:10:20 +00:00
mme_enb_t *enb,
S1AP_UE_associatedLogicalS1_ConnectionListRes_t *partOfS1_Interface);
2017-09-12 14:07:55 +00:00
2017-02-13 05:17:26 +00:00
#ifdef __cplusplus
}
2019-06-01 09:52:38 +00:00
#endif
2017-02-13 05:17:26 +00:00
2019-06-01 09:52:38 +00:00
#endif /* S1AP_PATH_H */