suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-template.h"
#include "util-validate.h"
Go to the source code of this file.
Functions | |
int | DecodeTEMPLATE (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
Function to decode TEMPLATE packets. More... | |
Decodes XXX describe the protocol
Definition in file decode-template.c.
int DecodeTEMPLATE | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint32_t | len | ||
) |
Function to decode TEMPLATE packets.
tv | thread vars |
dtv | decoder thread vars |
p | packet |
pkt | raw packet data |
len | length in bytes of pkt array |
TM_ECODE_OK | or TM_ECODE_FAILED on serious error |
Definition at line 51 of file decode-template.c.
References DEBUG_VALIDATE_BUG_ON, len, and TM_ECODE_FAILED.