suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-erspan.h"
#include "util-validate.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "conf.h"
Go to the source code of this file.
Functions | |
void | DecodeERSPANConfig (void) |
Functions to decode ERSPAN Type I and II packets. More... | |
int | DecodeERSPANTypeI (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
ERSPAN Type I. More... | |
int | DecodeERSPAN (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
ERSPAN Type II. More... | |
Decodes ERSPAN Types I and II
Definition in file decode-erspan.c.
int DecodeERSPAN | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint32_t | len | ||
) |
ERSPAN Type II.
Definition at line 76 of file decode-erspan.c.
References DecodeThreadVars_::counter_erspan, DEBUG_VALIDATE_BUG_ON, dtv, ENGINE_SET_EVENT, ERSPAN_HEADER_TOO_SMALL, len, StatsIncr(), TM_ECODE_FAILED, and tv.
void DecodeERSPANConfig | ( | void | ) |
Functions to decode ERSPAN Type I and II packets.
Definition at line 53 of file decode-erspan.c.
References ConfGetBool(), and SCLogWarning.
Referenced by DecodeGlobalConfig().
int DecodeERSPANTypeI | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint32_t | len | ||
) |
ERSPAN Type I.
Definition at line 65 of file decode-erspan.c.
References DecodeThreadVars_::counter_erspan, DecodeEthernet(), dtv, len, StatsIncr(), and tv.