Class: PacketGen::Header::OSPFv3::LSRequest
- Defined in:
- lib/packetgen/header/ospfv3/ls_request.rb
Overview
This class handles OSPFv3 Link State Request packets payload. The LSR payload has the following format:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | LS Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
This paylod is implemented as a unique field: #lsrs, which is an ArrayOfLSR object.
Instance Attribute Summary collapse
-
#lsrs ⇒ ArrayOfLSR
Array of LSR.
Method Summary
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, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::Base
Instance Attribute Details
#lsrs ⇒ ArrayOfLSR
Array of PacketGen::Header::OSPFv3::LSR
103 |
# File 'lib/packetgen/header/ospfv3/ls_request.rb', line 103 define_attr :lsrs, ArrayOfLSR |