zeek/testing/btest/Traces/tcp
Robin Sommer 6fbebc5e94
Fixing productive connections with missing SYN still considered partial after flipping direction.
In https://github.com/zeek/zeek/pull/2191, we added endpoint flipping
for cases where a connection starts with a SYN/ACK followed by ACK or
data. The goal was to treat the connection as productive and go ahead
and parse it. But the TCP analyzer could continue to consider it
partial after flipping, meaning that app layers would bail out. #2426
shows such a case: HTTP gets correctly activated after flipping
through content inspection, but it won't process anything because
`IsPartial()` returns true. As the is-partial state reflects
whether we saw the first packets each in direction, this patch now
overrides that state for the originally missing SYN after flipping.

We actually had the same problem at a couple of other locations already
as well. One of that only happened to work because of the originally
inconsistent state flipping that was fixed in the previous commit. The
corresponding unit test now broke after that change. This commit
updates that logic as well to override the state.

This fix is a bit of a hack, but the best solution I could think of
without introducing larger changes.

Closes #2426.
2022-11-16 09:56:51 +01:00
..
fin_retransmission.pcap Improve TCP FIN retransmission handling. 2014-01-24 15:51:58 -06:00
handshake-reorder.trace Improve analysis of TCP SYN/SYN-ACK reversal situations. 2014-03-11 17:03:59 -05:00
http-on-irc-port-missing-syn.pcap Fixing productive connections with missing SYN still considered partial after flipping direction. 2022-11-16 09:56:51 +01:00
miss_end_data.pcap Improve gap reporting in TCP connections that never see data. 2014-01-24 16:21:02 -06:00
missing-syn.pcap Extendign connection history field to flag when Bro flips a 2016-07-08 14:56:52 -07:00
no-handshake.pcap GH-646: add new "successful_connection_remove" event 2019-11-11 19:52:59 -08:00
option-27.pcap Add files via upload 2022-08-11 18:23:02 -07:00
option-sack.pcap GH-618: add "tcp_options" event containing TCP option values 2019-10-03 18:59:02 -07:00
options.pcap Fix tcp_option event 2019-10-03 17:55:07 -07:00
payload-syn.pcap GH-664: fix signature matching for payload-carrying SYN packets 2019-10-29 17:20:08 -07:00
payload-synack.pcap GH-664: fix signature matching for payload-carrying SYN packets 2019-10-29 17:20:08 -07:00
qi_internet_SYNACK_curl_jsonip.pcap BIT-1314: Added QI test for rexmit_inconsistency 2015-05-28 12:12:22 +02:00
reassembly.pcap A set of tests exercising IP defragmentation and TCP reassembly. 2015-07-03 08:40:22 -07:00
retransmit-fast009.trace Change snaplen of test trace from 1,000,000 to 10,000 2017-01-31 13:10:36 -08:00
rst-inject-rae.trace Fix a case where c$resp$size is misrepresented. Addresses #730. 2012-12-14 17:08:50 -06:00
single-rst.pcap GH-1164: Fix incorrect RSTOS0 conn_state determinations 2020-09-11 16:14:41 -07:00
ssh-dups.pcap Duplicate TCP segment should trigger tcp_multiple_retransmissions 2019-07-28 15:15:40 -06:00
syn-synack.pcap GH-646: add new "successful_connection_remove" event 2019-11-11 19:52:59 -08:00
syn-then-ack-then-rst.pcap GH-1164: Fix incorrect RSTOS0 conn_state determinations 2020-09-11 16:14:41 -07:00
syn-then-rst.pcap GH-1164: Fix incorrect RSTOS0 conn_state determinations 2020-09-11 16:14:41 -07:00
syn-then-stuff-then-rst.pcap GH-1164: Fix incorrect RSTOS0 conn_state determinations 2020-09-11 16:14:41 -07:00
syn.pcap GH-646: add new "successful_connection_remove" event 2019-11-11 19:52:59 -08:00
tcp-fast-open.pcap Convert pcapng test suite files to pcap format 2019-11-08 13:08:06 -08:00
timestamp.pcap Merge https://github.com/gpotter2/zeek. 2021-09-20 11:41:29 +02:00
truncated-header.pcap Fix potential crash TCP headers were captured incompletely. 2015-08-30 18:49:05 -07:00