Class: PacketFu::TcpOption::EOL
- Inherits:
-
PacketFu::TcpOption
- Object
- Struct
- PacketFu::TcpOption
- PacketFu::TcpOption::EOL
- Defined in:
- lib/packetfu/protos/tcp/option.rb
Overview
End of Line option. Usually used to terminate a string of options.
Instance Attribute Summary
Attributes inherited from PacketFu::TcpOption
Instance Method Summary collapse
- #decode ⇒ Object
-
#initialize(args = {}) ⇒ EOL
constructor
A new instance of EOL.
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
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
#decode ⇒ Object
108 109 110 |
# File 'lib/packetfu/protos/tcp/option.rb', line 108 def decode "EOL" end |