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.
11 years ago
benches Initial add of the files. 16 years ago
contrib Add option on Tile-Gx for logging for fast.log alerts over PCIe 12 years ago
doc Update docs from wiki 13 years ago
lua output-lua: add SCPacketTimeString 11 years ago
m4 Prelude plugin: add detection in configure script 16 years ago
qa Suppress ARM valgrind warning 11 years ago
rules ipv6: check for MLD messages with HL not 1 11 years ago
scripts suricatasc: exit with error if command returns NOK 11 years ago
src flow: make TCP reuse handling in flow engine optional 11 years ago
.gitignore unittest: make check use a qa/log dir for logging 12 years ago
.travis.yml travis-ci: use make check 11 years ago
COPYING Initial add of the files. 16 years ago
ChangeLog Update changelog for 2.1beta3 11 years ago
LICENSE import of gplv2 LICENSE 16 years ago
Makefile.am Respect DESTDIR in install-conf and install-rules. 11 years ago
Makefile.cvs Initial add of the files. 16 years ago
acsite.m4 Added C99 defs/macros to acsite.m4 for CentOS 16 years ago
autogen.sh OpenBSD 5.2 build fixes, Unit test fix. 13 years ago
classification.config Import of classification.config 15 years ago
config.rpath Add file needed for some autotools version. 12 years ago
configure.ac netmap support 11 years ago
doxygen.cfg doxygen: add source browser 11 years ago
reference.config Update reference.config 11 years ago
suricata.yaml.in netmap support 11 years ago
threshold.config threshold: improve comments of shipped threshold.config, add links to wiki. 13 years ago