Class: PacketGen::Header::UDP
- Inherits:
-
Object
- Object
- PacketGen::Header::UDP
- Defined in:
- lib/pcap2json/packetgen_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
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 |