Lines Matching +full:pre +full:- +full:verified
1 // SPDX-License-Identifier: GPL-2.0
3 /* This is over-simplified TCP_REPAIR for TCP_ESTABLISHED sockets
4 * It tests that TCP-AO enabled connection can be restored.
6 * https://github.com/checkpoint-restore/criu/blob/criu-dev/soccr/soccr.h
30 if (test_add_key(lsk, DEFAULT_TEST_PASSWORD, this_ip_dest, -1, 100, 100)) in try_server_run()
86 synchronize_threads(); /* 4: verified => closed */ in try_server_run()
95 try_server_run("TCP-AO migrate to another socket", port++, in server_fn()
97 try_server_run("TCP-AO with wrong send ISN", port++, in server_fn()
99 try_server_run("TCP-AO with wrong receive ISN", port++, in server_fn()
101 try_server_run("TCP-AO with wrong send SEQ ext number", port++, in server_fn()
103 try_server_run("TCP-AO with wrong receive SEQ ext number", port++, in server_fn()
120 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, this_ip_dest, -1, 100, 100)) in test_get_sk_checkpoint()
129 test_fail("pre-migrate verify failed"); in test_get_sk_checkpoint()
158 if (test_add_repaired_key(sk, DEFAULT_TEST_PASSWORD, 0, this_ip_dest, -1, 100, 100)) in test_sk_restore()
171 test_ok("%s: post-migrate connection is broken", tst_name); in test_sk_restore()
173 test_fail("%s: post-migrate connection is working", tst_name); in test_sk_restore()
176 test_fail("%s: post-migrate connection still working", tst_name); in test_sk_restore()
178 test_ok("%s: post-migrate connection is alive", tst_name); in test_sk_restore()
194 synchronize_threads(); /* 4: verified => closed */ in test_sk_restore()
206 test_sk_restore("TCP-AO migrate to another socket", port++, in client_fn()
212 -1, port, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
214 port, -1, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
215 test_sk_restore("TCP-AO with wrong send ISN", port++, in client_fn()
221 -1, port, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
223 port, -1, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
224 test_sk_restore("TCP-AO with wrong receive ISN", port++, in client_fn()
230 -1, port, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
232 test_sk_restore("TCP-AO with wrong send SEQ ext number", port++, in client_fn()
240 port, -1, 0, -1, -1, -1, -1, -1, 100, 100, -1); in client_fn()
241 test_sk_restore("TCP-AO with wrong receive SEQ ext number", port++, in client_fn()