]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threshold: register threshold host storage. Related to bug #991
authorVictor Julien <victor@inliniac.net>
Tue, 15 Oct 2013 09:18:10 +0000 (11:18 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 15 Oct 2013 09:18:10 +0000 (11:18 +0200)
src/detect-engine-threshold.h
src/suricata.c

index 141d510a6ebc1e454ac2a5948280a35a438c21e5..b874ecb2fa159bf1a6167c0820796e8653527488 100644 (file)
@@ -28,6 +28,8 @@
 #include "detect.h"
 #include "host.h"
 
+void ThresholdInit(void);
+
 int ThresholdHostStorageId(void);
 int ThresholdHostHasThreshold(Host *);
 
index 3318a17b437f081519312f977cbc59a9f7c89a8e..585a71e4c7cfdbb57529256b1619e17d3ec05fd8 100644 (file)
@@ -58,6 +58,7 @@
 #include "detect-parse.h"
 #include "detect-fast-pattern.h"
 #include "detect-engine-tag.h"
+#include "detect-engine-threshold.h"
 #include "detect-engine-address.h"
 #include "detect-engine-port.h"
 #include "detect-engine-mpm.h"
@@ -1984,6 +1985,7 @@ int main(int argc, char **argv)
     SCProtoNameInit();
 
     TagInitCtx();
+    ThresholdInit();
 
     if (DetectAddressTestConfVars() < 0) {
         SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,