]> The Tcpdump Group git mirrors - tcpdump/commitdiff
TCP: Add a test with data in the RST segment
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 18 Jan 2021 11:46:23 +0000 (12:46 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 18 Jan 2021 13:06:26 +0000 (14:06 +0100)
tests/TESTLIST
tests/tcp_rst_data.out [new file with mode: 0644]
tests/tcp_rst_data.pcap [new file with mode: 0644]

index 0bb2bfa3c42f5412fe975b39e1e458f3d9e6e4c2..830d5285d417b5956bd989529269fa59cb32d867 100644 (file)
@@ -37,6 +37,9 @@ tcp-handshake-nano-ttt tcp-handshake-nano.pcap tcp-handshake-nano-ttt.out -ttt -
 tcp-handshake-nano-tttt tcp-handshake-nano.pcap tcp-handshake-nano-tttt.out -tttt -q --nano
 tcp-handshake-nano-ttttt tcp-handshake-nano.pcap tcp-handshake-nano-ttttt.out -ttttt -q --nano
 
+# TCP with data in the RST segment
+tcp_rst_data tcp_rst_data.pcap tcp_rst_data.out -v
+
 # BGP tests
 bgp_vpn_attrset bgp_vpn_attrset.pcap bgp_vpn_attrset.out -v
 mpbgp-linklocal-nexthop mpbgp-linklocal-nexthop.pcap mpbgp-linklocal-nexthop.out -v
diff --git a/tests/tcp_rst_data.out b/tests/tcp_rst_data.out
new file mode 100644 (file)
index 0000000..8e108d9
--- /dev/null
@@ -0,0 +1,2 @@
+    1  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.], cksum 0x8471 (correct), seq 1617159969:1617160027, ack 1936660873, win 5785, length 58 [RST+ BIG-IP: [0x11c5672:3045] {peer]
diff --git a/tests/tcp_rst_data.pcap b/tests/tcp_rst_data.pcap
new file mode 100644 (file)
index 0000000..4c7ba57
Binary files /dev/null and b/tests/tcp_rst_data.pcap differ