Class: PacketGen::Header::IPv6::HopByHop
Overview
Hop-by-hop IPv6 extension
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Next Header | Hdr Ext Len | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +
| |
. .
. Options .
. .
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Hop-by-hop IPv6 extension header consists of:
Instance Attribute Summary collapse
-
#options ⇒ Options
Specific HopByHop options.
Attributes inherited from Extension
Instance Method Summary collapse
-
#to_s ⇒ String
Generate binary string.
Methods inherited from Extension
Methods inherited from Base
bind, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, #ll_header
Methods included from PacketGen::Headerable
#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read
Constructor Details
This class inherits a constructor from PacketGen::Header::Base
Instance Attribute Details
Instance Method Details
#to_s ⇒ String
Generate binary string. Add padding if needed in #options, and update Extension#length accordingly.
126 127 128 129 |
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 126 def to_s calc_length super end |