decode-erspan.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-erspan.h"
#include "util-unittest.h"
#include "util-debug.h"
Include dependency graph for decode-erspan.c:

Go to the source code of this file.


int DecodeERSPAN (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len, PacketQueue *pq)
 Function to decode ERSPAN packets. More...

Detailed Description

Victor Julien

Decodes ERSPAN

Definition in file decode-erspan.c.

Function Documentation

int DecodeERSPAN ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint32_t  len,
PacketQueue pq 

Function to decode ERSPAN packets.

Definition at line 46 of file decode-erspan.c.

References DecodeThreadVars_::counter_erspan, DecodeEthernet(), ENGINE_SET_EVENT, ERSPAN_HEADER_TOO_SMALL, ERSPAN_TOO_MANY_VLAN_LAYERS, ERSPAN_UNSUPPORTED_VERSION, SCLogDebug, SCNtohs, StatsIncr(), TM_ECODE_FAILED, version, Packet_::vlan_id, and Packet_::vlan_idx.

Referenced by DecodeTunnel(), and GetProgramVersion().

Here is the call graph for this function:

Here is the caller graph for this function: