decode-vlan.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-vlan.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-vlan.c:

Go to the source code of this file.

Data Structures

struct  IEEE8021ahHdr_


#define IEEE8021AH_HEADER_LEN   sizeof(IEEE8021ahHdr)


int DecodeVLAN (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
uint16_t DecodeVLANGetId (const Packet *p, uint8_t layer)
struct IEEE8021ahHdr_ __attribute__ ((__packed__))
 DNP3 link header. More...
void DecodeVLANRegisterTests (void)


uint32_t flags
uint8_t c_destination [6]
uint8_t c_source [6]
uint16_t type

Detailed Description

Breno Silva

Decode 802.1q

Definition in file decode-vlan.c.

Macro Definition Documentation


#define IEEE8021AH_HEADER_LEN   sizeof(IEEE8021ahHdr)

Function Documentation

◆ DecodeVLAN()

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

◆ DecodeVLANGetId()

uint16_t DecodeVLANGetId ( const Packet p,
uint8_t  layer 

Definition at line 96 of file decode-vlan.c.

References unlikely, Packet_::vlan_id, and Packet_::vlan_idx.

◆ DecodeVLANRegisterTests()

void DecodeVLANRegisterTests ( void  )

Definition at line 265 of file decode-vlan.c.

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

◆ c_destination

uint8_t c_destination[6]

Definition at line 113 of file decode-vlan.c.

◆ c_source

uint8_t c_source[6]

Definition at line 114 of file decode-vlan.c.

◆ flags

uint32_t flags

Definition at line 112 of file decode-vlan.c.

◆ type

uint16_t type

next protocol

Definition at line 115 of file decode-vlan.c.