class PacketFu::ARPHeader

ARPHeader is a complete ARP struct, used in ARPPacket.

ARP is used to discover the machine address of nearby devices.

See www.networksorcery.com/enp/protocol/arp.htm for details.

Header Definition

Int16   :arp_hw          Default: 1       # Ethernet
Int16   :arp_proto,      Default: 0x8000  # IP
Int8    :arp_hw_len,     Default: 6
Int8    :arp_proto_len,  Default: 4
Int16   :arp_opcode,     Default: 1       # 1: Request, 2: Reply, 3: Request-Reverse, 4: Reply-Reverse
EthMac  :arp_src_mac                      # From eth.rb
Octets  :arp_src_ip                       # From ip.rb
EthMac  :arp_dst_mac                      # From eth.rb
Octets  :arp_dst_ip                       # From ip.rb
String  :body