Go to the documentation of this file.
21 static int initialized = 0;
29 checksum-checks: no\n\
40 if (initialized == 0) {
42 setenv(
"SC_LOG_OP_IFACE",
"file", 0);
43 setenv(
"SC_LOG_FILE",
"/dev/null", 0);
62 "packetpool",
"packetpool",
63 "packetpool",
"packetpool",
69 if (tm_module == NULL) {
74 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 SCRunmodeSet(int run_mode)
Set the current run mode.
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
void RunModeInitializeThreadSettings(void)
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
SC_ATOMIC_EXTERN(unsigned int, engine_stage)
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)
uint32_t max_pending_packets
void TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, const void *data)
Appends a new entry to the slots.
void TimeModeSetOffline(void)
TmEcode(* ThreadInit)(ThreadVars *, const void *, void **)
TmEcode ConfigSetLogDirectory(const char *name)
Structure to hold thread specific data for all decode modules.
void PcapFileGlobalInit(void)
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