Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine developed by the OISF and the Suricata community.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Victor Julien 7426a9c645 flow: make TCP reuse handling in flow engine optional
In case of autofp (or more general, when flow and stream engine
run in different threads) the flow engine should not trigger a flow
reuse as this can lead to race conditions between the flow and the
stream engine.

In such cases, the flow engine can be far ahead of the stream engine
as packets are in a queue between the threads.

Observed:

Flow engine tags packet 10 as start of new flow. Flow is tagged as
'reused'.

Stream engine evaluates packet 5 which belongs to the old flow. It
rejects the flow as it's tagged 'reused'. Attaches packet 5 to the
new flow which is wrong.

Solution:

This patch connects the flow engines handling of reuse cases to
the runmode. It hooks into the RunmodeSetFlowStreamAsync() call to
notify the flow engine that it shouldn't handle the reuse.
12 years ago
benches
contrib Add option on Tile-Gx for logging for fast.log alerts over PCIe 13 years ago
doc Update docs from wiki 14 years ago
lua output-lua: add SCPacketTimeString 12 years ago
m4 Prelude plugin: add detection in configure script 17 years ago
qa Suppress ARM valgrind warning 12 years ago
rules ipv6: check for MLD messages with HL not 1 12 years ago
scripts suricatasc: exit with error if command returns NOK 12 years ago
src flow: make TCP reuse handling in flow engine optional 12 years ago
.gitignore unittest: make check use a qa/log dir for logging 13 years ago
.travis.yml travis-ci: use make check 12 years ago
COPYING
ChangeLog Update changelog for 2.1beta3 12 years ago
LICENSE
Makefile.am Respect DESTDIR in install-conf and install-rules. 12 years ago
Makefile.cvs
acsite.m4
autogen.sh OpenBSD 5.2 build fixes, Unit test fix. 14 years ago
classification.config Import of classification.config 17 years ago
config.rpath Add file needed for some autotools version. 13 years ago
configure.ac netmap support 12 years ago
doxygen.cfg doxygen: add source browser 12 years ago
reference.config Update reference.config 12 years ago
suricata.yaml.in netmap support 12 years ago
threshold.config threshold: improve comments of shipped threshold.config, add links to wiki. 14 years ago