suricata
decode-etag.c File Reference
#include "suricata-common.h"
#include "decode-etag.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"
Include dependency graph for decode-etag.c:

Go to the source code of this file.

Functions

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

Detailed Description

Author
Fupeng Zhao fupen.nosp@m.g.zh.nosp@m.ao@fo.nosp@m.xmai.nosp@m.l.com

Decode 802.1BR E-Tag headers

This implementation is based on the following specification doc: https://www.scribd.com/document/262742673/802-1BR-2012-pdf

Definition in file decode-etag.c.

Function Documentation

◆ DecodeETag()

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

Definition at line 44 of file decode-etag.c.

References DecodeThreadVars_::counter_etag, DEBUG_VALIDATE_BUG_ON, dtv, ENGINE_SET_INVALID_EVENT, ETAG_HEADER_LEN, ETAG_HEADER_TOO_SMALL, len, StatsIncr(), TM_ECODE_FAILED, and tv.

Here is the call graph for this function:

◆ DecodeETagRegisterTests()

void DecodeETagRegisterTests ( void  )

Definition at line 150 of file decode-etag.c.

References UtRegisterTest().

Here is the call graph for this function: