suricata
|
#include "suricata-common.h"
#include "decode-raw.h"
#include "decode.h"
#include "decode-events.h"
#include "util-validate.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "util-unittest-helper.h"
#include "packet.h"
Go to the source code of this file.
Functions | |
int | DecodeRaw (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
void | DecodeRawRegisterTests (void) |
Registers Raw unit tests. More... | |
Decode RAW
Definition in file decode-raw.c.
int DecodeRaw | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint32_t | len | ||
) |
Definition at line 42 of file decode-raw.c.
References DecodeThreadVars_::counter_raw, DEBUG_VALIDATE_BUG_ON, DecodeIPV4(), DecodeIPV6(), dtv, ENGINE_SET_EVENT, ENGINE_SET_INVALID_EVENT, GET_PKT_DATA, GET_PKT_LEN, IP_GET_RAW_VER, IPRAW_INVALID_IPV, IPV4_HEADER_LEN, IPV4_PKT_TOO_SMALL, len, SCLogDebug, StatsIncr(), TM_ECODE_FAILED, TM_ECODE_OK, tv, and unlikely.
Referenced by ValidateLinkType().
void DecodeRawRegisterTests | ( | void | ) |
Registers Raw unit tests.
Definition at line 217 of file decode-raw.c.
References UtRegisterTest().