Go to the documentation of this file.
18 static int initialized = 0;
26 checksum-checks: no\n\
36 if (initialized == 0) {
38 setenv(
"SC_LOG_OP_IFACE",
"file", 0);
39 setenv(
"SC_LOG_FILE",
"/dev/null", 0);
58 "packetpool",
"packetpool",
59 "packetpool",
"packetpool",
65 if (tm_module == NULL) {
70 if (tm_module == NULL) {
ThreadVars * TmThreadCreatePacketHandler(const char *name, const char *inq_name, const char *inqh_name, const char *outq_name, const char *outqh_name, const char *slots)
Creates and returns a TV instance for a Packet Processing Thread. This function doesn't support custo...
#define SC_ATOMIC_SET(name, val)
Set the value for the atomic variable.
void RunModeInitialize(void)
const char configNoChecksum[]
TmEcode(* PktAcqLoop)(ThreadVars *, void *, void *)
void PacketPoolInit(void)
TmEcode(* ThreadDeinit)(ThreadVars *, void *)
TmModule * TmModuleGetByName(const char *name)
get a tm module ptr by name
struct TmSlot_ * tm_slots
Per thread variable structure.
int TestHelperBufferToFile(const char *name, const uint8_t *data, size_t size)
writes the contents of a buffer into a file
int ConfYamlLoadString(const char *string, size_t len)
Load configuration from a YAML string.
int PostConfLoadedSetup(SCInstance *suri)
TmModule tmm_modules[TMM_SIZE]
void setenv(const char *name, const char *value, int overwrite)
void TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, const void *data)
Appends a new entry to the slots.
void TimeModeSetOffline(void)
void PcapFileGlobalInit()
TmEcode(* ThreadInit)(ThreadVars *, const void *, void **)
TmEcode ConfigSetLogDirectory(const char *name)
Structure to hold thread specific data for all decode modules.
struct TmSlot_ * slot_next
int InitGlobal(void)
Global initialization common to all runmodes.
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
volatile uint8_t suricata_ctl_flags