#include "detect-threshold.h"
#include "util-classification-config.h"
#include "util-rule-vars.h"
+#include "detect-engine-alert.h"
#include "flow-util.h"
#include "util-debug.h"
int PatternMatchPrepareGroup(DetectEngineCtx *, SigGroupHead *);
-TmEcode DetectEngineThreadCtxInit(ThreadVars *, void *, void **);
-TmEcode DetectEngineThreadCtxDeinit(ThreadVars *, void *);
-
int SignatureHasPacketContent(const Signature *);
int SignatureHasStreamContent(const Signature *);
#include "detect-engine-loader.h"
+#include "detect-engine-alert.h"
+
#include "util-classification-config.h"
#include "util-reference-config.h"
#include "util-threshold-config.h"
const DetectEngineCtx *de_ctx, const int id);
bool DetectEngineBufferTypeSupportsFramesGetById(const DetectEngineCtx *de_ctx, const int id);
const char *DetectEngineBufferTypeGetDescriptionById(const DetectEngineCtx *de_ctx, const int id);
-const DetectBufferType *DetectEngineBufferTypeGetById(const DetectEngineCtx *de_ctx, const int id);
int DetectEngineBufferTypeGetByIdTransforms(
DetectEngineCtx *de_ctx, const int id, TransformData *transforms, int transform_cnt);
void DetectEngineBufferRunSetupCallback(const DetectEngineCtx *de_ctx, const int id, Signature *s);
#define SURICATA_DETECT_HTTP_HEADER_H
void DetectHttpHeaderRegister(void);
-void DetectHttpRawHeaderRegister(void);
void DetectHttpRequestHeaderRegister(void);
void DetectHttpResponseHeaderRegister(void);
void RuleMatchCandidateTxArrayInit(DetectEngineThreadCtx *det_ctx, uint32_t size);
void RuleMatchCandidateTxArrayFree(DetectEngineThreadCtx *det_ctx);
-void AlertQueueInit(DetectEngineThreadCtx *det_ctx);
-void AlertQueueFree(DetectEngineThreadCtx *det_ctx);
-void AlertQueueAppend(DetectEngineThreadCtx *det_ctx, const Signature *s, Packet *p, uint64_t tx_id,
- uint8_t alert_flags);
-
int DetectFlowbitsAnalyze(DetectEngineCtx *de_ctx);
int DetectMetadataHashInit(DetectEngineCtx *de_ctx);
#include "flow-spare-pool.h"
#include "stream-tcp.h"
+#include "stream-tcp-cache.h"
#include "util-device.h"
uint64_t StreamTcpGetMemcap(void);
int StreamTcpCheckMemcap(uint64_t);
uint64_t StreamTcpMemuseCounter(void);
-uint64_t StreamTcpReassembleMemuseGlobalCounter(void);
int StreamTcpSegmentForEach(const Packet *p, uint8_t flag,
StreamSegmentCallback CallbackFunc,
uint64_t StreamTcpGetUsable(const TcpStream *stream, const bool eof);
uint64_t StreamDataRightEdge(const TcpStream *stream, const bool eof);
-void StreamTcpThreadCacheEnable(void);
-void StreamTcpThreadCacheCleanup(void);
-
#endif /* SURICATA_STREAM_TCP_H */
#else
#define RunmodeIsUnittests() 0
#endif
-int SCRunmodeGet(void);
/**
* \brief Get the current run mode.
pthread_mutex_t data_m;
} SCProfileDetectCtx;
-void SCProfilingRulesGlobalInit(void);
-void SCProfilingRuleDestroyCtx(struct SCProfileDetectCtx_ *);
-void SCProfilingRuleInitCounters(DetectEngineCtx *);
-void SCProfilingRuleUpdateCounter(DetectEngineThreadCtx *, uint16_t, uint64_t, int);
-void SCProfilingRuleThreadSetup(struct SCProfileDetectCtx_ *, DetectEngineThreadCtx *);
-void SCProfilingRuleThreadCleanup(DetectEngineThreadCtx *);
int SCProfileRuleStart(Packet *p);
json_t *SCProfileRuleTriggerDump(DetectEngineCtx *de_ctx);
void SCProfileRuleStartCollection(void);