28static const unsigned char DNS_REQUEST[94] = {
29 0xa0, 0x36, 0x9f, 0x4c, 0x4c, 0x28, 0x50, 0xeb,
30 0xf6, 0x7d, 0xea, 0x54, 0x08, 0x00, 0x45, 0x00,
31 0x00, 0x50, 0x19, 0xae, 0x00, 0x00, 0x40, 0x11,
32 0x4a, 0xc4, 0x0a, 0x10, 0x01, 0x0b, 0x0a, 0x10,
33 0x01, 0x01, 0x95, 0x97, 0x00, 0x35, 0x00, 0x3c,
34 0x90, 0x6e, 0xdb, 0x12, 0x01, 0x20, 0x00, 0x01,
35 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x73,
36 0x75, 0x72, 0x69, 0x63, 0x61, 0x74, 0x61, 0x02,
37 0x69, 0x6f, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
38 0x00, 0x29, 0x04, 0xd0, 0x00, 0x00, 0x00, 0x00,
39 0x00, 0x0c, 0x00, 0x0a, 0x00, 0x08, 0x88, 0x51,
40 0x20, 0xaf, 0x46, 0xc5, 0xdc, 0xce
75 gettimeofday(&now, NULL);
93static void ReceiveThreadExitPrintStats(
ThreadVars *
tv,
void *data)
#define PKT_IGNORE_CHECKSUM
Packet * PacketGetFromQueueOrAlloc(void)
Get a packet. We try to get a packet from the packetpool first, but if that is empty we alloc a packe...
void DecodeRegisterPerfCounters(DecodeThreadVars *dtv, ThreadVars *tv)
DecodeThreadVars * DecodeThreadVarsAlloc(ThreadVars *tv)
Alloc and setup DecodeThreadVars.
void DecodeThreadVarsFree(ThreadVars *tv, DecodeThreadVars *dtv)
int PacketCopyData(Packet *p, const uint8_t *pktdata, uint32_t pktlen)
Copy data to Packet payload and set packet length.
void SCPacketSetTime(Packet *p, SCTime_t ts)
Set the timestamp for a packet.
void SCPacketSetSource(Packet *p, enum PktSrcEnum source)
Set packet source.
void SCPacketSetDatalink(Packet *p, int datalink)
Set a packets data link type.
void TmModuleDecodeCiCaptureRegister(int slot)
void TmModuleReceiveCiCaptureRegister(int slot)
Structure to hold thread specific data for all decode modules.
Per thread variable structure.
TmEcode(* ThreadDeinit)(ThreadVars *, void *)
void(* ThreadExitPrintStats)(ThreadVars *, void *)
TmEcode(* PktAcqBreakLoop)(ThreadVars *, void *)
TmEcode(* Func)(ThreadVars *, Packet *, void *)
TmEcode(* PktAcqLoop)(ThreadVars *, void *, void *)
TmEcode(* ThreadInit)(ThreadVars *, const void *, void **)
struct TmSlot_ * slot_next
volatile uint8_t suricata_ctl_flags
void EngineStop(void)
make sure threads can stop the engine by calling this function. Purpose: pcap file mode needs to be a...
TmModule tmm_modules[TMM_SIZE]
#define TM_FLAG_RECEIVE_TM
#define TM_FLAG_DECODE_TM
void TmThreadsSetFlag(ThreadVars *tv, uint32_t flag)
Set a thread flag.
void PacketPoolWait(void)
void TmqhOutputPacketpool(ThreadVars *t, Packet *p)
#define LINKTYPE_ETHERNET
#define SCLogNotice(...)
Macro used to log NOTICE messages.
#define SCTIME_FROM_TIMEVAL(tv)