43 const uint8_t *pkt, uint32_t
len)
57 if (!PacketIncreaseCheckLayers(p)) {
72static int DecodeCHDLCTest01 (
void)
74 uint8_t raw[] = { 0x0f,0x00,0x08,0x00,
75 0x45,0x00,0x00,0x30,0x15,0x5a,0x40,0x00,0x80,0x06,
76 0x6c,0xd0,0xc0,0xa8,0x02,0x07,0x41,0x37,0x74,0xb7,
77 0x13,0x4a,0x00,0x50,0x9c,0x34,0x09,0x6c,0x00,0x00,
78 0x00,0x00,0x70,0x02,0x40,0x00,0x11,0x47,0x00,0x00,
79 0x02,0x04,0x05,0xb4,0x01,0x01,0x04,0x02 };
void StatsIncr(ThreadVars *tv, uint16_t id)
Increments the local counter.
void DecodeCHDLCRegisterTests(void)
Registers Ethernet unit tests.
int DecodeCHDLC(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
#define ENGINE_SET_INVALID_EVENT(p, e)
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
#define FAIL_IF_NOT(expr)
Fail a test if expression evaluates to false.
#define PASS
Pass the test.
Packet * PacketGetFromAlloc(void)
Get a malloced packet.
Structure to hold thread specific data for all decode modules.
Per thread variable structure.
#define DEBUG_VALIDATE_BUG_ON(exp)