RE: [PATCH 12/12] selftests/net: Add TCP-AO key-management test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: Dmitry Safonov <dima@xxxxxxxxxx>
>Sent: Thursday, December 14, 2023 9:36 PM

>+
>+static void end_server(const char *tst_name, int sk,
>+		       struct tcp_ao_counters *begin) {
>+	struct tcp_ao_counters end;
>+
>+	if (test_get_tcp_ao_counters(sk, &end))
>+		test_error("test_get_tcp_ao_counters()");
>+	verify_keys(tst_name, sk, false, true);
>+
>+	synchronize_threads(); /* 4: verified => closed */
>+	close(sk);
>+
>+	verify_counters(tst_name, true, false, begin, &end);

Shouldn't it be reversed instead?
verify_counters(tst_name, false, true, begin, &end);
The sk is an accept socket and the function is called by the server.

>+	synchronize_threads(); /* 5: counters */ }
>+
>+int main(int argc, char *argv[])
>+{
>+	test_init(120, server_fn, client_fn);
>+	return 0;
>+}
>
>--
>2.43.0





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux