Class: Pio::Arp::Format

Inherits:
BinData::Record
  • Object
show all
Extended by:
Type::EthernetHeader
Defined in:
lib/pio/arp/format.rb

Overview

ARP parser.

Instance Method Summary collapse

Methods included from Type::EthernetHeader

ethernet_header

Instance Method Details

#message_typeObject



27
28
29
# File 'lib/pio/arp/format.rb', line 27

def message_type
  operation
end

#to_binaryObject



31
32
33
# File 'lib/pio/arp/format.rb', line 31

def to_binary
  to_binary_s + "\000" * (64 - num_bytes)
end