2017-03-23 11:57:55 +00:00
|
|
|
#ifndef __GTP_PATH_H__
|
|
|
|
#define __GTP_PATH_H__
|
|
|
|
|
2017-03-24 09:47:05 +00:00
|
|
|
#include "core_pkbuf.h"
|
2017-11-22 10:51:06 +00:00
|
|
|
#include "core_network.h"
|
2017-11-30 11:13:15 +00:00
|
|
|
|
|
|
|
typedef struct _gtp_node_t gtp_node_t;
|
2017-03-23 11:57:55 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2017-12-02 05:17:32 +00:00
|
|
|
CORE_DECLARE(status_t) gtp_server(sock_node_t *snode, sock_handler handler);
|
|
|
|
CORE_DECLARE(status_t) gtp_client(gtp_node_t *gnode);
|
2017-03-26 15:48:33 +00:00
|
|
|
|
2017-12-07 04:27:17 +00:00
|
|
|
CORE_DECLARE(status_t) gtp_server_list(list_t *list, sock_handler handler);
|
|
|
|
CORE_DECLARE(c_sockaddr_t *) gtp_local_addr_first(list_t *list);
|
|
|
|
|
2017-11-22 15:19:28 +00:00
|
|
|
CORE_DECLARE(status_t) gtp_recv(sock_id sock, pkbuf_t **pkbuf);
|
|
|
|
CORE_DECLARE(status_t) gtp_recvfrom(sock_id sock,
|
2017-11-22 12:50:08 +00:00
|
|
|
pkbuf_t **pkbuf, c_sockaddr_t *from);
|
2017-09-01 15:11:49 +00:00
|
|
|
CORE_DECLARE(status_t) gtp_send(gtp_node_t *gnode, pkbuf_t *pkbuf);
|
2017-03-23 11:57:55 +00:00
|
|
|
|
2017-04-18 09:24:37 +00:00
|
|
|
CORE_DECLARE(pkbuf_t*) gtp_handle_echo_req(pkbuf_t *pkt);
|
2017-03-23 11:57:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __GTP_PATH_H__ */
|