@@ -30,8 +30,6 @@ static void setup_lo_intf(const char *lo_intf)
30
30
static void tcp_self_connect (const char * tst , unsigned int port ,
31
31
bool different_keyids , bool check_restore )
32
32
{
33
- uint64_t before_challenge_ack , after_challenge_ack ;
34
- uint64_t before_syn_challenge , after_syn_challenge ;
35
33
struct tcp_ao_counters before_ao , after_ao ;
36
34
uint64_t before_aogood , after_aogood ;
37
35
struct netstat * ns_before , * ns_after ;
@@ -62,8 +60,6 @@ static void tcp_self_connect(const char *tst, unsigned int port,
62
60
63
61
ns_before = netstat_read ();
64
62
before_aogood = netstat_get (ns_before , "TCPAOGood" , NULL );
65
- before_challenge_ack = netstat_get (ns_before , "TCPChallengeACK" , NULL );
66
- before_syn_challenge = netstat_get (ns_before , "TCPSYNChallenge" , NULL );
67
63
if (test_get_tcp_ao_counters (sk , & before_ao ))
68
64
test_error ("test_get_tcp_ao_counters()" );
69
65
@@ -82,8 +78,6 @@ static void tcp_self_connect(const char *tst, unsigned int port,
82
78
83
79
ns_after = netstat_read ();
84
80
after_aogood = netstat_get (ns_after , "TCPAOGood" , NULL );
85
- after_challenge_ack = netstat_get (ns_after , "TCPChallengeACK" , NULL );
86
- after_syn_challenge = netstat_get (ns_after , "TCPSYNChallenge" , NULL );
87
81
if (test_get_tcp_ao_counters (sk , & after_ao ))
88
82
test_error ("test_get_tcp_ao_counters()" );
89
83
if (!check_restore ) {
@@ -98,18 +92,6 @@ static void tcp_self_connect(const char *tst, unsigned int port,
98
92
close (sk );
99
93
return ;
100
94
}
101
- if (after_challenge_ack <= before_challenge_ack ||
102
- after_syn_challenge <= before_syn_challenge ) {
103
- /*
104
- * It's also meant to test simultaneous open, so check
105
- * these counters as well.
106
- */
107
- test_fail ("%s: Didn't challenge SYN or ACK: %zu <= %zu OR %zu <= %zu" ,
108
- tst , after_challenge_ack , before_challenge_ack ,
109
- after_syn_challenge , before_syn_challenge );
110
- close (sk );
111
- return ;
112
- }
113
95
114
96
if (test_tcp_ao_counters_cmp (tst , & before_ao , & after_ao , TEST_CNT_GOOD )) {
115
97
close (sk );
0 commit comments