Class: PacketGen::Header::TCP::EOL

Inherits:
Option show all
Defined in:
lib/packetgen/header/tcp/option.rb

Overview

End Of Option TCP option

Author:

  • Sylvain Daubert

Constant Summary

Constants inherited from Option

Option::ECHOREPLY_KIND, Option::ECHO_KIND, Option::EOL_KIND, Option::MSS_KIND, Option::NOP_KIND, Option::SACKOK_KIND, Option::SACK_KIND, Option::TS_KIND, Option::WS_KIND

Instance Attribute Summary

Attributes inherited from Option

#kind, #length, #value

Instance Method Summary collapse

Methods inherited from Option

#has_length?, #inspect, #read, #to_human, #to_s

Methods included from StructFu

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

Methods inherited from Struct

#force_binary

Constructor Details

#initialize(options = {}) ⇒ EOL

Returns a new instance of EOL.

See Also:



143
144
145
# File 'lib/packetgen/header/tcp/option.rb', line 143

def initialize(options={})
  super options.merge!(kind: EOL_KIND)
end