Class: 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
Get human-readable description.
Methods inherited from Option
#inspect, #length?, #old_set_value, #to_s
Constructor Details
#initialize(options = {}) ⇒ ECHOREPLY
Returns a new instance of ECHOREPLY.
229 230 231 232 |
# File 'lib/packetgen/header/tcp/option.rb', line 229 def initialize(={}) super self[:value] = BinStruct::Int32.new(value: [:value]) end |
Instance Method Details
#to_human ⇒ String
Get human-readable description
236 237 238 |
# File 'lib/packetgen/header/tcp/option.rb', line 236 def to_human "WS:#{value}" end |