Window Size option.
Methods
Class Public methods
Source: show
# File lib/packetfu/protos/tcp.rb, line 367 def initialize(args={}) super( args.merge(:kind => 3, :optlen => 3 ) ) self[:value] = Int8.new(args[:value]) end
Instance Public methods
WS options with lengths other than 3 are malformed.
Source: show
# File lib/packetfu/protos/tcp.rb, line 379 def decode if self[:optlen].to_i == 3 "WS:#{self[:value].to_i}" else "WS-bad:#{self[:value]}" end end
Source: show
# File lib/packetfu/protos/tcp.rb, line 376 def value=(i); typecast i; end