]> The Tcpdump Group git mirrors - tcpdump/commit
TCP: Fix Reset segment processing
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 1 Nov 2024 21:20:24 +0000 (22:20 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 2 Nov 2024 15:11:03 +0000 (16:11 +0100)
commit6031ab25f9ea7d126a71201d33d05e005abc5c4f
tree87a048196fd45016719ef72f3925b226c9c56c87
parent319b1cfc9fcda3776313166b1c3667206cd853ae
TCP: Fix Reset segment processing

When a received RST segment contains data, this is diagnostic data that
explains the cause of the RST.

So we have to stop processing, even if we don't print the data (no "-v").

Rename two test outputs, with "-v" in the names.
Add two test cases (existing pcap printed without "-v").

(cherry picked from commit 7f9a48502c3003fd80e0be79d80f572bf667216a)
print-tcp.c
tests/TESTLIST
tests/tcp_rst_data-trunc-v.out [new file with mode: 0644]
tests/tcp_rst_data-trunc.out
tests/tcp_rst_data-v.out [new file with mode: 0644]
tests/tcp_rst_data.out