Class: PacketGen::Header::UDP

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



141
142
143
144
145
146
147
148
# File 'lib/pcap2json/packetgen_extensions.rb', line 141

def to_h
  { 
    "sport"    =>  self.sport, 
    "dport"    =>  self.dport, 
    "length"   =>  self.length, 
    "checksum" =>  self.checksum 
  }
end