|
suricata
|
#include "suricata-common.h"#include "decode.h"#include "decode-ethernet.h"#include "decode-events.h"#include "util-validate.h"#include "util-unittest.h"#include "util-debug.h"
Go to the source code of this file.
Functions | |
| int | DecodeEthernet (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
| void | DecodeEthernetRegisterTests (void) |
| Registers Ethernet unit tests. More... | |
Decode Ethernet
Definition in file decode-ethernet.c.
| int DecodeEthernet | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | p, | ||
| const uint8_t * | pkt, | ||
| uint32_t | len | ||
| ) |
Definition at line 42 of file decode-ethernet.c.
References DecodeThreadVars_::counter_eth, DEBUG_VALIDATE_BUG_ON, dtv, ENGINE_SET_INVALID_EVENT, ETHERNET_HEADER_LEN, ETHERNET_PKT_TOO_SMALL, len, StatsIncr(), TM_ECODE_FAILED, tv, and unlikely.
Referenced by DecodeErfDag(), DecodeERSPANTypeI(), UTHBuildPacketFromEth(), and ValidateLinkType().


| void DecodeEthernetRegisterTests | ( | void | ) |
Registers Ethernet unit tests.
Definition at line 176 of file decode-ethernet.c.
References UtRegisterTest().
