suricata
decode-arp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ARPHdr_
 

Macros

#define ARP_HEADER_MIN_LEN   8
 
#define ARP_HEADER_LEN   28
 
#define ARP_HW_TYPE_ETHERNET   0x01
 
#define ARP_PROTO_TYPE_IP   0x0800
 
#define ARP_HW_SIZE   6
 
#define ARP_PROTO_SIZE   4
 

Functions

struct ARPHdr_ __attribute__ ((__packed__)) ARPHdr
 DNP3 link header. More...
 

Variables

uint16_t hw_type
 
uint16_t proto_type
 
uint8_t hw_size
 
uint8_t proto_size
 
uint16_t opcode
 
uint8_t source_mac [6]
 
uint8_t source_ip [4]
 
uint8_t dest_mac [6]
 
uint8_t dest_ip [4]
 

Macro Definition Documentation

◆ ARP_HEADER_LEN

#define ARP_HEADER_LEN   28

Definition at line 28 of file decode-arp.h.

◆ ARP_HEADER_MIN_LEN

#define ARP_HEADER_MIN_LEN   8
Author
Giuseppe Longo giuse.nosp@m.ppe@.nosp@m.glong.nosp@m.o.it

Definition at line 27 of file decode-arp.h.

◆ ARP_HW_SIZE

#define ARP_HW_SIZE   6

Definition at line 31 of file decode-arp.h.

◆ ARP_HW_TYPE_ETHERNET

#define ARP_HW_TYPE_ETHERNET   0x01

Definition at line 29 of file decode-arp.h.

◆ ARP_PROTO_SIZE

#define ARP_PROTO_SIZE   4

Definition at line 32 of file decode-arp.h.

◆ ARP_PROTO_TYPE_IP

#define ARP_PROTO_TYPE_IP   0x0800

Definition at line 30 of file decode-arp.h.

Variable Documentation

◆ dest_ip

uint8_t dest_ip[4]

Definition at line 8 of file decode-arp.h.

◆ dest_mac

uint8_t dest_mac[6]

Definition at line 7 of file decode-arp.h.

◆ hw_size

uint8_t hw_size

Definition at line 2 of file decode-arp.h.

◆ hw_type

uint16_t hw_type

Definition at line 0 of file decode-arp.h.

◆ opcode

uint16_t opcode

Definition at line 4 of file decode-arp.h.

◆ proto_size

uint8_t proto_size

Definition at line 3 of file decode-arp.h.

Referenced by DecodePPP().

◆ proto_type

uint16_t proto_type

Definition at line 1 of file decode-arp.h.

◆ source_ip

uint8_t source_ip[4]

Definition at line 6 of file decode-arp.h.

◆ source_mac

uint8_t source_mac[6]

Definition at line 5 of file decode-arp.h.