Methods
D
N
Class Public methods
new(args={})
# File lib/packetfu/protos/tcp.rb, line 449
                        def initialize(args={})
                                super(
                                        args.merge(:kind => 6,
                                                                                 :optlen => 6
                                                                                )
                                )
                        end
Instance Public methods
decode()

ECHO options with lengths other than 6 are malformed.

# File lib/packetfu/protos/tcp.rb, line 458
                        def decode
                                if self[:optlen].to_i == 6
                                        "ECHO:#{self[:value]}"
                                else
                                        "ECHO-bad:#{self[:value]}"
                                end
                        end