Methods
D
N
V
Class Public methods
new(args={})
# 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
decode()

MSS options with lengths other than 4 are malformed.

# 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
value=(i)
# File lib/packetfu/protos/tcp.rb, line 350
                        def value=(i); typecast i; end