suricata
decode-vlan.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-vlan.h"
#include "decode-events.h"
#include "flow.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "pkt-var.h"
#include "util-profiling.h"
#include "host.h"
Include dependency graph for decode-vlan.c:

Go to the source code of this file.

Data Structures

struct  IEEE8021ahHdr_
 

Macros

#define IEEE8021AH_HEADER_LEN   sizeof(IEEE8021ahHdr)
 

Functions

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

Variables

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

Detailed Description

Author
Breno Silva breno.nosp@m..sil.nosp@m.va@gm.nosp@m.ail..nosp@m.com

Decode 802.1q

Definition in file decode-vlan.c.

Macro Definition Documentation

#define IEEE8021AH_HEADER_LEN   sizeof(IEEE8021ahHdr)

Referenced by __attribute__().

Function Documentation

uint16_t DecodeVLANGetId ( const Packet p,
uint8_t  layer 
)

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

void DecodeVLANRegisterTests ( void  )

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

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

uint8_t c_destination[6]

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

uint8_t c_source[6]

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

uint32_t flags

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

uint16_t type

next protocol

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