Class: Capp::Packet::IPv4Header

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

Overview

IPv4 header. See RFC 791

Instance Attribute Summary collapse

Instance Attribute Details

#checksumObject

Returns the value of attribute checksum

Returns:

  • (Object)

    the current value of checksum



47
48
49
# File 'lib/capp/packet.rb', line 47

def checksum
  @checksum
end

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



47
48
49
# File 'lib/capp/packet.rb', line 47

def destination
  @destination
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



47
48
49
# File 'lib/capp/packet.rb', line 47

def id
  @id
end

#ihlObject

Returns the value of attribute ihl

Returns:

  • (Object)

    the current value of ihl



47
48
49
# File 'lib/capp/packet.rb', line 47

def ihl
  @ihl
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



47
48
49
# File 'lib/capp/packet.rb', line 47

def length
  @length
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



47
48
49
# File 'lib/capp/packet.rb', line 47

def offset
  @offset
end

#protocolObject

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



47
48
49
# File 'lib/capp/packet.rb', line 47

def protocol
  @protocol
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



47
48
49
# File 'lib/capp/packet.rb', line 47

def source
  @source
end

#tosObject

Returns the value of attribute tos

Returns:

  • (Object)

    the current value of tos



47
48
49
# File 'lib/capp/packet.rb', line 47

def tos
  @tos
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



47
48
49
# File 'lib/capp/packet.rb', line 47

def ttl
  @ttl
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



47
48
49
# File 'lib/capp/packet.rb', line 47

def version
  @version
end