Class: PacketGen::Header::TCP::ECHOREPLY
- Inherits:
-
Option
- Object
- Types::Fields
- Option
- PacketGen::Header::TCP::ECHOREPLY
- Defined in:
- lib/packetgen/header/tcp/option.rb
Overview
Echo Reply TCP option
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
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ECHOREPLY
constructor
A new instance of ECHOREPLY.
- #to_human ⇒ String
Methods inherited from Option
#inspect, #length?, #old_set_value, #to_s
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
#initialize(options = {}) ⇒ ECHOREPLY
Returns a new instance of ECHOREPLY.
217 218 219 220 |
# File 'lib/packetgen/header/tcp/option.rb', line 217 def initialize(={}) super self[:value] = Types::Int32.new([:value]) end |
Instance Method Details
#to_human ⇒ String
223 224 225 |
# File 'lib/packetgen/header/tcp/option.rb', line 223 def to_human "WS:#{value}" end |