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