Go to the documentation of this file.
38 if (!PacketIncreaseCheckLayers(p)) {
42 const ARPHdr *arph = PacketSetARP(p, pkt);
76 switch (
SCNtohs(arph->opcode)) {
#define ARP_HW_TYPE_ETHERNET
int DecodeARP(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
Per thread variable structure.
void StatsCounterIncr(StatsThreadContext *stats, StatsCounterId id)
Increments the local counter.
#define ARP_HEADER_MIN_LEN
@ ARP_UNSUPPORTED_HARDWARE
@ ARP_INVALID_HARDWARE_SIZE
Structure to hold thread specific data for all decode modules.
#define ENGINE_SET_INVALID_EVENT(p, e)
StatsCounterId counter_arp
@ ARP_INVALID_PROTOCOL_SIZE
@ ARP_UNSUPPORTED_PROTOCOL