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/>.
|
|
|
|
*/
|
|
|
|
|
2017-03-23 11:57:55 +00:00
|
|
|
#ifndef __GTP_PATH_H__
|
|
|
|
#define __GTP_PATH_H__
|
|
|
|
|
2019-05-28 05:47:06 +00:00
|
|
|
typedef struct gtp_node_s gtp_node_t;
|
2017-03-23 11:57:55 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2019-05-31 14:22:22 +00:00
|
|
|
ogs_sock_t *gtp_server(ogs_socknode_t *node);
|
2019-04-27 14:54:30 +00:00
|
|
|
int gtp_connect(ogs_sock_t *ipv4, ogs_sock_t *ipv6, gtp_node_t *gnode);
|
2017-03-26 15:48:33 +00:00
|
|
|
|
2019-04-27 14:54:30 +00:00
|
|
|
ogs_sock_t *gtp_local_sock_first(ogs_list_t *list);
|
|
|
|
ogs_sockaddr_t *gtp_local_addr_first(ogs_list_t *list);
|
2018-01-09 07:37:05 +00:00
|
|
|
|
2019-04-27 14:54:30 +00:00
|
|
|
int gtp_send(gtp_node_t *gnode, ogs_pkbuf_t *pkbuf);
|
|
|
|
int gtp_sendto(gtp_node_t *gnode, ogs_pkbuf_t *pkbuf);
|
2017-12-07 04:27:17 +00:00
|
|
|
|
2019-04-27 14:54:30 +00:00
|
|
|
ogs_pkbuf_t *gtp_handle_echo_req(ogs_pkbuf_t *pkt);
|
2017-03-23 11:57:55 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __GTP_PATH_H__ */
|