suricata
decode-template.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-template.h"
#include "util-validate.h"
Include dependency graph for decode-template.c:

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...
 

Detailed Description

Author
XXX Your Name your@.nosp@m.emai.nosp@m.l.com

Decodes XXX describe the protocol

Definition in file decode-template.c.

Function Documentation

◆ DecodeTEMPLATE()

int DecodeTEMPLATE ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint32_t  len 
)

Function to decode TEMPLATE packets.

Parameters
tvthread vars
dtvdecoder thread vars
ppacket
pktraw packet data
lenlength in bytes of pkt array
Return values
TM_ECODE_OKor 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.