]> git.ipfire.org Git - thirdparty/suricata.git/commit
Delay Detect threads initialization
authorEric Leblond <eric@regit.org>
Fri, 10 Aug 2012 13:32:30 +0000 (15:32 +0200)
committerEric Leblond <eric@regit.org>
Mon, 27 Aug 2012 14:07:21 +0000 (16:07 +0200)
commit7e09cdc26571f18c2ecdafddfb2552b76fb56225
tree0edd5c77b308613796592716962601fe5c9d62a9
parenteaea832a4e1033276a6787ef14ccbe66fbe3d1b4
Delay Detect threads initialization

This patch modifies the init of Detect threads. They are now started
with a dummy function and their initialisation is done after the
signatures are loaded. Just after this, the dummy function is switched
to normal one.

In IPS mode, this permit to route packets without waiting for the
signature to start and should fix #488.

Offline mode such as pcap file don't use this mode to be sure to
analyse all packets in the file.

The patch introduces a "delayed-detect" configuration variable
under detect-engine. It can be used to activate the feature
(set to "yes" to have signature loaded after capture is started).
src/cuda-packet-batcher.c
src/detect.h
src/flow-timeout.c
src/suricata.c
src/tm-threads.c
src/tm-threads.h
src/util-mpm-b2g-cuda.c
src/util-runmodes.c
suricata.yaml.in