Go to the documentation of this file.
23 static int initialized = 0;
32 if (initialized == 0) {
34 setenv(
"SC_LOG_OP_IFACE",
"file", 0);
35 setenv(
"SC_LOG_FILE",
"/dev/null", 0);
65 char * buffer = malloc(size+1);
67 memcpy(buffer, data, size);
@ RUNMODE_ENGINE_ANALYSIS
int SCConfYamlLoadString(const char *string, size_t len)
Load configuration from a YAML string.
#define SC_ATOMIC_SET(name, val)
Set the value for the atomic variable.
void SetupEngineAnalysis(DetectEngineCtx *de_ctx, bool *fp_analysis, bool *rule_analysis)
main detection engine ctx
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
void GlobalsInitPreConfig(void)
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
void SCRunmodeSet(SCRunMode run_mode)
Set the current run mode.
SC_ATOMIC_EXTERN(unsigned int, engine_stage)
int PostConfLoadedSetup(SCInstance *suri)
void PostConfLoadedDetectSetup(SCInstance *suri)
bool fp_engine_analysis_set
void setenv(const char *name, const char *value, int overwrite)
int SigGroupBuild(DetectEngineCtx *de_ctx)
Convert the signature list into the runtime match structure.
int SCConfSetFinal(const char *name, const char *val)
Set a final configuration value.
#define nalloc_start(x, y)
void CleanupEngineAnalysis(DetectEngineCtx *de_ctx)
TmEcode ConfigSetLogDirectory(const char *name)
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
bool rule_engine_analysis_set
DetectEngineCtx * DetectEngineCtxInit(void)
#define nalloc_restrict_file_prefix(x)
int InitGlobal(void)
Global initialization common to all runmodes.
const char * configNoChecksum