Class: PacketFu::TcpOption::EOL

Inherits:
PacketFu::TcpOption show all
Defined in:
lib/packetfu/protos/tcp/option.rb

Overview

End of Line option. Usually used to terminate a string of options.

www.networksorcery.com/enp/protocol/tcp/option000.htm

Instance Attribute Summary

Attributes inherited from PacketFu::TcpOption

#kind, #optlen, #value

Instance Method Summary collapse

Methods inherited from PacketFu::TcpOption

#encode, #has_optlen?, #has_value?, #read, #to_s

Methods included from StructFu

#body=, #clone, #set_endianness, #sz, #typecast

Methods inherited from Struct

#force_binary

Constructor Details

#initialize(args = {}) ⇒ EOL

Returns a new instance of EOL.



102
103
104
105
106
# File 'lib/packetfu/protos/tcp/option.rb', line 102

def initialize(args={})
  super(
    args.merge(:kind => 0)
  )
end

Instance Method Details

#decodeObject



108
109
110
# File 'lib/packetfu/protos/tcp/option.rb', line 108

def decode
  "EOL"
end