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

ECHOREPLY options with lengths other than 6 are malformed.

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