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

Returns:

  • (Object)

    the current value of checksum



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

def checksum
  @checksum
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



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

def code
  @code
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



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

def data
  @data
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end