Class: PcapTools::Parser::TCP_PDU

Inherits:
BinData::Record
  • Object
show all
Includes:
HasParent
Defined in:
lib/pcap_parser.rb

Overview

TCP Protocol Data Unit

Instance Attribute Summary

Attributes included from HasParent

#parent

Instance Method Summary collapse

Instance Method Details

#options_length_in_bytesObject



75
76
77
# File 'lib/pcap_parser.rb', line 75

def options_length_in_bytes
  (doff - 5 ) * 4
end

#typeObject



79
80
81
# File 'lib/pcap_parser.rb', line 79

def type
  "TCP"
end