]> Gentwo Git Trees - linux/.git/commit
selftest: packetdrill: Import sockopt-fastopen-key.pkt
authorKuniyuki Iwashima <kuniyu@google.com>
Sat, 27 Sep 2025 21:29:50 +0000 (21:29 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Sep 2025 01:41:39 +0000 (18:41 -0700)
commit05b9f505fbe760416afa555bdfd0c461291ed69c
tree09c863f555a6f769b9ee0f86471f18aee0194385
parentbe90c7b3d5c8f3343d2402b883e7ec673538a302
selftest: packetdrill: Import sockopt-fastopen-key.pkt

sockopt-fastopen-key.pkt does not have the non-experimental
version, so the Experimental version is converted, FOEXP -> FO.

The test sets net.ipv4.tcp_fastopen_key=0-0-0-0 and instead
sets another key via setsockopt(TCP_FASTOPEN_KEY).

The first listener generates a valid cookie in response to TFO
option without cookie, and the second listner creates a TFO socket
using the valid cookie.

TCP_FASTOPEN_KEY is adjusted to use the common key in default.sh
so that we can use TFO_COOKIE and support dualstack.  Similarly,
TFO_COOKIE_ZERO for the 0-0-0-0 key is defined.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250927213022.1850048-13-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/packetdrill/ksft_runner.sh
tools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt [new file with mode: 0644]