static netns_state_t *test_pmtu_state;
static int setup_test(void **state) {
+ (void)state;
+
netns_create_topology(test_pmtu_state);
fprintf(stderr, "\nCreated topology\n");
test_pmtu_peer_running = true;
test_pmtu_nut_running = true;
ping_channel_enable_07 = false;
- memset(node_pmtu, 2, sizeof(node_pmtu[0]));
+ memset(node_pmtu, 0, sizeof(node_pmtu));
set_sync_flag(&test_pmtu_nut_closed, false);
meshlink_destroy("nut");
meshlink_destroy("peer");
}
static int teardown_test(void **state) {
+ (void)state;
+
meshlink_destroy("nut");
meshlink_destroy("peer");
meshlink_destroy("relay");
}
static void execute_test(test_step_func_t step_func, void **state) {
+ (void)state;
+
fprintf(stderr, "\n\x1b[32mRunning Test\x1b[0m\n");
bool test_result = step_func();
assert(invitation);
mesh_invite_arg->invite_str = invitation;
meshlink_close(mesh);
+
+ return NULL;
}
/* Test Steps for optimal PMTU discovery Test Case # 1 -
static bool run_conntrack;
static pthread_t pmtu_test_case_conntrack_thread;
static void *conntrack_flush(void *arg) {
+ (void)arg;
+
// flushes mappings for every 60 seconds
while(run_conntrack) {