Class: PacketGen::Header::ARP

Inherits:
Object
  • Object
show all
Defined in:
lib/pcap2json/packetgen_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



152
153
154
155
156
157
158
159
160
161
162
# File 'lib/pcap2json/packetgen_extensions.rb', line 152

def to_h
  { 
    "hrd" => self.hrd, 
    "pro" => self.pro, 
    "hln" => self.hln, 
    "op"  => self.op, 
    "sha" => self.sha, 
    "tha" => self.tha, 
    "tpa" => self.tpa 
  }
end