X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_optimal_pmtu.h;fp=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_optimal_pmtu.h;h=0000000000000000000000000000000000000000;hb=2d38bcd7378c1237d95e9465f2b0dab74453f456;hp=3ee68f7d6af816441a3358aa8dcd37f46cdcc28f;hpb=196b0da2cb6b4973c4d92afecb0b481c560d36a5;p=meshlink-tiny diff --git a/test/blackbox/run_blackbox_tests/test_optimal_pmtu.h b/test/blackbox/run_blackbox_tests/test_optimal_pmtu.h deleted file mode 100644 index 3ee68f7..0000000 --- a/test/blackbox/run_blackbox_tests/test_optimal_pmtu.h +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef TEST_CASES_OPTIMAL_PMTU_H -#define TEST_CASES_OPTIMAL_PMTU_H - -/* - test_optimal_pmtu.h -- Declarations for Individual Test Case implementation functions - Copyright (C) 2019 Guus Sliepen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 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, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -*/ - -#include - -extern int test_optimal_pmtu(void); -extern int total_tests; -extern char *lxc_path; - -typedef struct pmtu_attr_para { - int probes; - int probes_total_len; - int count; - time_t time; - time_t time_l; - time_t time_h; -} pmtu_attr_para_t; - -typedef struct pmtu_attr { - pmtu_attr_para_t mtu_sent_probes; - pmtu_attr_para_t mtu_recv_probes; - pmtu_attr_para_t mtu_discovery; - pmtu_attr_para_t mtu_ping; - pmtu_attr_para_t mtu_increase; - pmtu_attr_para_t mtu_start; - int mtu_size; -} pmtu_attr_t; - -#define NODE_PMTU_RELAY 0 -#define NODE_PMTU_PEER 1 - -#define find_node_index(i, node_name) if(!strcasecmp(node_name, "peer")) { \ - i = NODE_PMTU_PEER; \ - } else if(!strcasecmp(node_name, "relay")) { \ - i = NODE_PMTU_RELAY; \ - } else { \ - abort(); \ - } - -#define PING_TRACK_TIMEOUT 100 -#define CHANNEL_PORT 1234 - -#endif // TEST_CASES_OPTIMAL_PMTU_H