2019-04-27 14:54:30 +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/>.
|
|
|
|
*/
|
|
|
|
|
2020-04-26 19:36:05 +00:00
|
|
|
#ifndef SMF_PFCP_PATH_H
|
|
|
|
#define SMF_PFCP_PATH_H
|
2019-04-27 14:54:30 +00:00
|
|
|
|
2022-05-15 14:35:41 +00:00
|
|
|
#include "n4-build.h"
|
2019-04-27 14:54:30 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-04-26 19:36:05 +00:00
|
|
|
int smf_pfcp_open(void);
|
|
|
|
void smf_pfcp_close(void);
|
|
|
|
|
2022-05-12 13:52:36 +00:00
|
|
|
int smf_pfcp_send_modify_list(
|
|
|
|
smf_sess_t *sess,
|
|
|
|
ogs_pkbuf_t *(*modify_list)(
|
|
|
|
uint8_t type, smf_sess_t *sess, ogs_pfcp_xact_t *xact),
|
|
|
|
ogs_pfcp_xact_t *xact, ogs_time_t duration);
|
|
|
|
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_5gc_pfcp_send_session_establishment_request(
|
2020-11-27 02:44:37 +00:00
|
|
|
smf_sess_t *sess, ogs_sbi_stream_t *stream);
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_5gc_pfcp_send_session_modification_request(
|
2021-02-01 04:01:15 +00:00
|
|
|
smf_sess_t *sess, ogs_sbi_stream_t *stream,
|
|
|
|
uint64_t flags, ogs_time_t duration);
|
2022-05-15 14:35:41 +00:00
|
|
|
int smf_5gc_pfcp_send_pdr_modification_request(
|
|
|
|
smf_sess_t *sess, ogs_sbi_stream_t *stream,
|
|
|
|
uint64_t flags, ogs_time_t duration);
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_5gc_pfcp_send_session_deletion_request(
|
2020-11-27 02:44:37 +00:00
|
|
|
smf_sess_t *sess, ogs_sbi_stream_t *stream, int trigger);
|
2020-06-22 03:07:14 +00:00
|
|
|
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_epc_pfcp_send_session_establishment_request(
|
2020-04-26 19:36:05 +00:00
|
|
|
smf_sess_t *sess, void *gtp_xact);
|
2021-11-23 05:19:30 +00:00
|
|
|
int smf_epc_pfcp_send_session_modification_request(
|
2022-05-15 14:35:41 +00:00
|
|
|
smf_sess_t *sess, void *gtp_xact,
|
|
|
|
uint64_t flags, uint8_t gtp_pti, uint8_t gtp_cause,
|
|
|
|
ogs_time_t duration);
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_epc_pfcp_send_bearer_modification_request(
|
2021-11-23 05:19:30 +00:00
|
|
|
smf_bearer_t *bearer, void *gtp_xact,
|
|
|
|
uint64_t flags, uint8_t gtp_pti, uint8_t gtp_cause);
|
2022-05-15 14:35:41 +00:00
|
|
|
int smf_epc_pfcp_send_pdr_modification_request(
|
|
|
|
smf_sess_t *sess, void *gtp_xact, ogs_pkbuf_t *gtpbuf,
|
|
|
|
uint64_t flags, uint8_t gtp_pti, uint8_t gtp_cause);
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_epc_pfcp_send_session_deletion_request(
|
2020-04-26 19:36:05 +00:00
|
|
|
smf_sess_t *sess, void *gtp_xact);
|
2019-04-27 14:54:30 +00:00
|
|
|
|
2022-05-12 13:52:36 +00:00
|
|
|
int smf_epc_pfcp_send_deactivation(smf_sess_t *sess, uint8_t gtp_cause);
|
|
|
|
|
2021-05-16 03:22:10 +00:00
|
|
|
int smf_pfcp_send_session_report_response(
|
2021-01-18 16:48:35 +00:00
|
|
|
ogs_pfcp_xact_t *xact, smf_sess_t *sess, uint8_t cause);
|
|
|
|
|
2019-04-27 14:54:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-04-26 19:36:05 +00:00
|
|
|
#endif /* SMF_PFCP_PATH_H */
|