Maximum Segment Size option.
Methods
Class Public methods
Source: show
# File lib/packetfu/protos/tcp.rb, line 341 def initialize(args={}) super( args.merge(:kind => 2, :optlen => 4 ) ) self[:value] = Int16.new(args[:value]) end
Instance Public methods
MSS options with lengths other than 4 are malformed.
Source: show
# File lib/packetfu/protos/tcp.rb, line 353 def decode if self[:optlen].to_i == 4 "MSS:#{self[:value].to_i}" else "MSS-bad:#{self[:value]}" end end
Source: show
# File lib/packetfu/protos/tcp.rb, line 350 def value=(i); typecast i; end