/* * 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 TEST_COMMON_GTPU_H #define TEST_COMMON_GTPU_H #ifdef __cplusplus extern "C" { #endif #define testgnb_gtpu_server(x) test_gtpu_server(x, OGS_GTPV1_U_UDP_PORT) #define testgnb_gtpu_read(x) test_gtpu_read(x) #define testgnb_gtpu_close(x) test_gtpu_close(x) ogs_socknode_t *test_gtpu_server(const char *ipstr, int port); ogs_pkbuf_t *test_gtpu_read(ogs_socknode_t *node); int testgnb_gtpu_send(ogs_socknode_t *node, ogs_pkbuf_t *sendbuf); void test_gtpu_close(ogs_socknode_t *node); int test_gtpu_build_ping(ogs_pkbuf_t **sendbuf, test_sess_t *sess, const char *dst_ip); #ifdef __cplusplus } #endif #endif /* TEST_COMMON_GTPU_H */