Class: FFI::Packets::Arp::Ethip

Inherits:
Struct
  • Object
show all
Includes:
DRY::NetStructHelper
Defined in:
lib/ffi/packets/arp.rb

Overview

Ethernet/IP ARP message

array :sha, [:uint8, ETH_ADDR_LEN], :desc => 'sender hardware address'
array :spa, [:uint8, IP_ADDR_LEN],  :desc => 'sender protocol address'
array :tha, [:uint8, ETH_ADDR_LEN], :desc => 'target hardware address'
array :tpa, [:uint8, IP_ADDR_LEN],  :desc => 'target protocol address'

Constant Summary collapse

ETH_ADDR_LEN =
Constants::ETH_ADDR_LEN
IP_ADDR_LEN =
Constants::IP_ADDR_LEN