class PacketGen::Header::Eth

Public Instance Methods

to_h() click to toggle source
# File lib/pcap2json/packetgen_extensions.rb, line 92
def to_h 
  { 
    "dst" =>  self.dst, 
    "src" =>  self.src, 
    "ethertype" =>  self.ethertype 
  } 
end