mirror of https://github.com/OISF/suricata
cybersecurityidsintrusion-detection-systemintrusion-prevention-systemipsnetwork-monitornetwork-monitoringnsmsecuritysuricatathreat-hunting
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.
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 | 17 years ago | |
| contrib | 12 years ago | |
| doc | 13 years ago | |
| lua | 11 years ago | |
| m4 | 16 years ago | |
| qa | 11 years ago | |
| rules | 11 years ago | |
| scripts | 11 years ago | |
| src | 11 years ago | |
| .gitignore | 13 years ago | |
| .travis.yml | 11 years ago | |
| COPYING | 17 years ago | |
| ChangeLog | 11 years ago | |
| LICENSE | 16 years ago | |
| Makefile.am | 11 years ago | |
| Makefile.cvs | 17 years ago | |
| acsite.m4 | 16 years ago | |
| autogen.sh | 13 years ago | |
| classification.config | 16 years ago | |
| config.rpath | 13 years ago | |
| configure.ac | 11 years ago | |
| doxygen.cfg | 12 years ago | |
| reference.config | 11 years ago | |
| suricata.yaml.in | 11 years ago | |
| threshold.config | 13 years ago | |