selftests/net: packetdrill: cover RST validation in SYN-RECEIVED
authorYuxiang Yang <yangyx22@mails.tsinghua.edu.cn>
Fri, 17 Jul 2026 08:14:43 +0000 (08:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Jul 2026 15:27:22 +0000 (08:27 -0700)
commit7bb18355e5996a70b15ad571f5597e13d61af00d
tree0ded6bc648645e415f079ffe6424bf4850212bca
parenta28c4fcbf774e23b4779cae468e3497a5ad1f4a1
selftests/net: packetdrill: cover RST validation in SYN-RECEIVED

Add packetdrill coverage for the RFC 9293 reset checks on request
sockets in SYN-RECEIVED.  Verify that an exact RST removes the request,
a non-exact in-window RST sends a challenge ACK without removing it,
and an out-of-window RST is silently discarded.

Also cover an RST|ACK with an unacceptable ACK number to ensure RST
sequence validation runs before ACK-field validation.

Signed-off-by: Yuxiang Yang <yangyx22@mails.tsinghua.edu.cn>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260717081443.809393-3-yangyx22@mails.tsinghua.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/packetdrill/tcp_rfc5961_rst-syn-recv.pkt [new file with mode: 0644]