Class: PacketGen::Header::IP::SI
- Defined in:
- lib/packetgen/header/ip/option.rb
Overview
Stream Identifier IP option
Constant Summary
Constants inherited from Option
Option::EOL_TYPE, Option::LSRR_TYPE, Option::NOP_TYPE, Option::RA_TYPE, Option::RR_TYPE, Option::SI_TYPE, Option::SSRR_TYPE
Instance Attribute Summary collapse
-
#id ⇒ Integer
16-bit stream ID.
Attributes inherited from Option
#copied, #data, #length, #option_class, #type
Instance Method Summary collapse
-
#to_human ⇒ String
Return a human-readable string.
Methods inherited from Option
build, #initialize, #to_s, types
Constructor Details
This class inherits a constructor from PacketGen::Header::IP::Option
Instance Attribute Details
#id ⇒ Integer
16-bit stream ID
200 |
# File 'lib/packetgen/header/ip/option.rb', line 200 define_attr :id, BinStruct::Int16 |
Instance Method Details
#to_human ⇒ String
Return a human-readable string
204 205 206 |
# File 'lib/packetgen/header/ip/option.rb', line 204 def to_human super << ":#{self.id}" end |