suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "decode-events.h"
#include "decode-gre.h"
#include "util-validate.h"
#include "util-unittest.h"
#include "util-debug.h"
Go to the source code of this file.
Functions | |
int | DecodeGRE (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
Function to decode GRE packets. More... | |
void | DecodeGRERegisterTests (void) |
this function registers unit tests for GRE decoder More... | |
Decodes GRE
Definition in file decode-gre.c.
int DecodeGRE | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint32_t | len | ||
) |
Function to decode GRE packets.
Definition at line 47 of file decode-gre.c.
References DecodeThreadVars_::counter_gre, DEBUG_VALIDATE_BUG_ON, dtv, ENGINE_SET_INVALID_EVENT, GRE_HDR_LEN, GRE_PKT_TOO_SMALL, len, StatsIncr(), TM_ECODE_FAILED, and tv.
void DecodeGRERegisterTests | ( | void | ) |
this function registers unit tests for GRE decoder
Definition at line 395 of file decode-gre.c.
References UtRegisterTest().