| Class | PacketFu::ARPHeader |
| In: |
lib/packetfu/arp.rb
|
| Parent: | Struct.new(:arp_hw, :arp_proto, :arp_hw_len, :arp_proto_len, :arp_opcode, :arp_src_mac, :arp_src_ip, :arp_dst_mac, :arp_dst_ip, :body) |
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.
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