Class: PacketGen::Header::TCP
- Inherits:
-
Object
- Object
- PacketGen::Header::TCP
- Defined in:
- lib/pcap2json/packetgen_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/pcap2json/packetgen_extensions.rb', line 122 def to_h { "sport" => self.sport, "dport" => self.dport, "seqnum" => self.seqnum, "acknum" => self.acknum, "u16" => self.u16, "data_offset" => self.data_offset, "reserved" => self.reserved, "flags" => self.flags, "window" => self.window, "checksum" => self.checksum, "urg_pointer" => self.urg_pointer, # options => self.options } end |