Method: PacketFu::ICMPPacket#read

Defined in:
lib/packetfu/protos/icmp.rb

#read(str = nil, args = {}) ⇒ Object



53
54
55
56
57
58
# File 'lib/packetfu/protos/icmp.rb', line 53

def read(str=nil, args={})
  raise "Cannot parse `#{str}'" unless self.class.can_parse?(str)
  @eth_header.read(str)
  super(args)
  self
end