From 10eaf550b71ef41163fcbd8c68a0d5a3d7bb4d3c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 20 Apr 2024 07:41:00 +0200 Subject: [PATCH] detect/threshold: includes cleanup --- src/detect-engine-threshold.c | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/src/detect-engine-threshold.c b/src/detect-engine-threshold.c index 4ae17b653c42..60d9bd8acc97 100644 --- a/src/detect-engine-threshold.c +++ b/src/detect-engine-threshold.c @@ -39,38 +39,19 @@ #include "detect.h" #include "flow.h" -#include "host.h" -#include "host-storage.h" - -#include "ippair.h" -#include "ippair-storage.h" - #include "detect-parse.h" -#include "detect-engine-sigorder.h" - -#include "detect-engine-siggroup.h" -#include "detect-engine-address.h" -#include "detect-engine-port.h" -#include "detect-engine-mpm.h" -#include "detect-engine-iponly.h" - #include "detect-engine.h" #include "detect-engine-threshold.h" +#include "detect-engine-address.h" +#include "detect-engine-address-ipv6.h" -#include "detect-content.h" -#include "detect-uricontent.h" - -#include "util-hash.h" #include "util-time.h" #include "util-error.h" #include "util-debug.h" - -#include "util-var-name.h" -#include "tm-threads.h" - #include "action-globals.h" #include "util-validate.h" +#include "util-hash.h" #include "util-thash.h" #include "util-hash-lookup3.h" @@ -222,8 +203,6 @@ uint32_t ThresholdsExpire(const SCTime_t ts) return THashExpire(ctx.thash, ts); } -#include "util-hash.h" - #define TC_ADDRESS 0 #define TC_SID 1 #define TC_GID 2 @@ -782,8 +761,6 @@ static int ThresholdCheckUpdate(const DetectThresholdData *td, ThresholdEntry *t return ret; } -#include "detect-engine-address-ipv6.h" - static int ThresholdGetFromHash(struct Thresholds *tctx, const Packet *p, const Signature *s, const DetectThresholdData *td, PacketAlert *pa) {