Class: Capp::Packet::ICMPHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/capp/packet.rb

Overview

ICMP header. See RFC 792

Instance Attribute Summary collapse

Instance Attribute Details

#checksumObject

Returns the value of attribute checksum



42
43
44
# File 'lib/capp/packet.rb', line 42

def checksum
  @checksum
end

#codeObject

Returns the value of attribute code



42
43
44
# File 'lib/capp/packet.rb', line 42

def code
  @code
end

#dataObject

Returns the value of attribute data



42
43
44
# File 'lib/capp/packet.rb', line 42

def data
  @data
end

#typeObject

Returns the value of attribute type



42
43
44
# File 'lib/capp/packet.rb', line 42

def type
  @type
end