Lines Matching +full:pre +full:- +full:verified
1 // SPDX-License-Identifier: GPL-2.0
2 /* Check that after SEQ number wrap-around:
3 * 1. SEQ-extension has upper bytes set
18 /* Move them closer to roll-over */
25 /* make them roll-over during quota, but on different segments */ in test_adjust_seqs()
27 new_seq1 = ((uint32_t)-1) - msg_len; in test_adjust_seqs()
28 new_seq2 = ((uint32_t)-1) - (quota - 2 * msg_len); in test_adjust_seqs()
30 new_seq1 = ((uint32_t)-1) - (quota - 2 * msg_len); in test_adjust_seqs()
31 new_seq2 = ((uint32_t)-1) - msg_len; in test_adjust_seqs()
34 img->in.seq = new_seq1; in test_adjust_seqs()
35 img->trw.snd_wl1 = img->in.seq - msg_len; in test_adjust_seqs()
36 img->out.seq = new_seq2; in test_adjust_seqs()
37 img->trw.rcv_wup = img->in.seq; in test_adjust_seqs()
53 if (test_add_repaired_key(sk, DEFAULT_TEST_PASSWORD, 0, daddr, -1, 100, 100)) in test_sk_restore()
77 if (test_add_key(lsk, DEFAULT_TEST_PASSWORD, this_ip_dest, -1, 100, 100)) in server_fn()
127 synchronize_threads(); /* 5: verify the connection during SEQ-number rollover */ in server_fn()
138 synchronize_threads(); /* 6: verify counters after SEQ-number rollover */ in server_fn()
154 test_fail("TCPAOBad counter is non-zero: %" PRIu64, after_bad); in server_fn()
167 synchronize_threads(); /* 6: verified => closed */ in server_fn()
186 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, this_ip_dest, -1, 100, 100)) in client_fn()
195 test_fail("pre-migrate verify failed"); in client_fn()
218 synchronize_threads(); /* 5: verify the connection during SEQ-number rollover */ in client_fn()
220 test_fail("post-migrate verify failed"); in client_fn()
222 test_ok("post-migrate connection alive"); in client_fn()
224 synchronize_threads(); /* 5: verify counters after SEQ-number rollover */ in client_fn()
240 test_fail("TCPAOBad counter is non-zero: %" PRIu64, after_bad); in client_fn()
244 synchronize_threads(); /* 6: verified => closed */ in client_fn()