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 5587372ce1 flow: modify lastts update logic
In the lastts timeval struct field in the flow the timestamp of the
last packet to update is recorded. This allows for tracking the timeout
of the flow. So far, this value was updated under the flow lock and also
read under the flow lock.

This patch moves the updating of this field to the FlowGetFlowFromHash
function, where it updated at the point where both the Flow and the
Flow Hash Row lock are held. This guarantees that the field is only
updated when both locks are held.

This makes reading the field safe when either lock is held, which is the
purpose of this patch.

The flow manager, while holding the flow hash row lock, can now safely
read the lastts value. This allows it to do the flow timeout check
without actually locking the flow.
11 years ago
benches Initial add of the files. 17 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: modify lastts update logic 11 years ago
.gitignore unittest: make check use a qa/log dir for logging 13 years ago
.travis.yml travis-ci: use make check 11 years ago
COPYING Initial add of the files. 17 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. 17 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 16 years ago
config.rpath Add file needed for some autotools version. 13 years ago
configure.ac Fix compilation on OS X Yosemite 11 years ago
doxygen.cfg doxygen: add source browser 12 years ago
reference.config Update reference.config 11 years ago
suricata.yaml.in tcp: add stream.reassembly.zero-copy-size option 11 years ago
threshold.config threshold: improve comments of shipped threshold.config, add links to wiki. 13 years ago