]> The Tcpdump Group git mirrors - tcpdump/commitdiff
TCP: Add a test with data in the RST segment, truncated example
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 19 Jan 2021 13:58:48 +0000 (14:58 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 2 Nov 2024 15:10:18 +0000 (16:10 +0100)
(backported from commit d4fe5e32fdd85c6a4f623c05f40795f5fb7b8f07)

tests/TESTLIST
tests/tcp_rst_data-trunc.out [new file with mode: 0644]
tests/tcp_rst_data-trunc.pcap [new file with mode: 0644]

index 009bade92c8c8807d3e69ea6755a76c24ac64893..fc0bb4b90c8b79cb09d6935bfff9ecacdc693c92 100644 (file)
@@ -21,6 +21,8 @@ print-AA      print-flags.pcap        print-AA.out    -AA
 
 # TCP with data in the RST segment
 tcp_rst_data tcp_rst_data.pcap tcp_rst_data.out -v
+# TCP with data in the RST segment, truncated example
+tcp_rst_data-trunc tcp_rst_data-trunc.pcap tcp_rst_data-trunc.out -v
 
 # BGP tests
 bgp_vpn_attrset bgp_vpn_attrset.pcap bgp_vpn_attrset.out -v
diff --git a/tests/tcp_rst_data-trunc.out b/tests/tcp_rst_data-trunc.out
new file mode 100644 (file)
index 0000000..0f25b0b
--- /dev/null
@@ -0,0 +1,2 @@
+    1  2013-02-26 22:03:19.190965 IP (tos 0x20, ttl 243, id 8243, offset 0, flags [DF], proto TCP (6), length 98)
+    199.204.31.89.80 > 172.16.133.41.52875: Flags [R.], seq 1617159969:1617160027, ack 1936660873, win 5785, length 58 [!RST+ BIG-IP: [0x11c5672:3045] {peer]
diff --git a/tests/tcp_rst_data-trunc.pcap b/tests/tcp_rst_data-trunc.pcap
new file mode 100644 (file)
index 0000000..91ff569
Binary files /dev/null and b/tests/tcp_rst_data-trunc.pcap differ