Go to the documentation of this file.
18 static uint32_t
cnt = 0;
20 static int initialized = 0;
26 setenv(
"SC_LOG_OP_IFACE",
"file", 0);
27 setenv(
"SC_LOG_FILE",
"/dev/null", 0);
38 if (initialized == 0) {
57 char * buffer = malloc(size+1);
59 memcpy(buffer, data, size);
void SigFree(DetectEngineCtx *, Signature *)
#define SC_ATOMIC_SET(name, val)
Set the value for the atomic variable.
main detection engine ctx
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
void GlobalsInitPreConfig(void)
void SCRunmodeSet(SCRunMode run_mode)
Set the current run mode.
int AppLayerSetup(void)
Setup the app layer.
void EngineModeSetIDS(void)
SC_ATOMIC_EXTERN(unsigned int, engine_stage)
Signature * SigInit(DetectEngineCtx *de_ctx, const char *sigstr)
Parses a signature and adds it to the Detection Engine Context.
void setenv(const char *name, const char *value, int overwrite)
#define nalloc_start(x, y)
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
DetectEngineCtx * DetectEngineCtxInit(void)
#define nalloc_restrict_file_prefix(x)
int InitGlobal(void)
Global initialization common to all runmodes.