Class: Capp::Packet::IPv4Header
- Inherits:
-
Struct
- Object
- Struct
- Capp::Packet::IPv4Header
- Defined in:
- lib/capp/packet.rb
Overview
IPv4 header. See RFC 791
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ihl ⇒ Object
Returns the value of attribute ihl.
-
#length ⇒ Object
Returns the value of attribute length.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#source ⇒ Object
Returns the value of attribute source.
-
#tos ⇒ Object
Returns the value of attribute tos.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def checksum @checksum end |
#destination ⇒ Object
Returns the value of attribute destination
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def destination @destination end |
#id ⇒ Object
Returns the value of attribute id
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def id @id end |
#ihl ⇒ Object
Returns the value of attribute ihl
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def ihl @ihl end |
#length ⇒ Object
Returns the value of attribute length
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def length @length end |
#offset ⇒ Object
Returns the value of attribute offset
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def offset @offset end |
#protocol ⇒ Object
Returns the value of attribute protocol
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def protocol @protocol end |
#source ⇒ Object
Returns the value of attribute source
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def source @source end |
#tos ⇒ Object
Returns the value of attribute tos
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def tos @tos end |
#ttl ⇒ Object
Returns the value of attribute ttl
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def ttl @ttl end |
#version ⇒ Object
Returns the value of attribute version
47 48 49 |
# File 'lib/capp/packet.rb', line 47 def version @version end |