Class: PacketGen::Header::OSPFv3::LSANetwork
- Inherits:
-
LSAHeader
- Object
- BinStruct::Struct
- LSAHeader
- PacketGen::Header::OSPFv3::LSANetwork
- Defined in:
- lib/packetgen/header/ospfv3/lsa.rb
Overview
This class handles OSPFv3 LSA Network payloads.
A LSA network payload is composed of:
-
a header (see methods inherited from LSAHeader),
-
a 8-bit #reserved field,
-
a 24-bit #options field,
-
and an array of router IDs (#routers, IP::ArrayOfAddr).
Constant Summary
Constants inherited from LSAHeader
PacketGen::Header::OSPFv3::LSAHeader::TYPES
Instance Attribute Summary collapse
-
#dc_opt ⇒ Integer
This bit describes the router’s handling of demand circuits.
-
#e_opt ⇒ Integer
This bit describes the way AS-external-LSAs are flooded.
-
#n_opt ⇒ Integer
This bit indicates whether or not the router is attached to an NSSA.
-
#options ⇒ Integer
24-bit options field.
-
#r_opt ⇒ Integer
This bit indicates whether the originator is an active router.
- #reserved ⇒ Integer
-
#routers ⇒ IP::ArrayOfAddr
List of routers attached to the link.
-
#v6_opt ⇒ Integer
If this bit is clear, the router/link should be excluded from IPv6 routing calculations.
-
#x_opt ⇒ Integer
This bit should be set to 0, and ignored when received.
Attributes inherited from LSAHeader
#advertising_router, #age, #checksum, #length, #link_state_id, #sequence_number, #type
Method Summary
Methods inherited from LSAHeader
#calc_checksum, #calc_length, #human_type, #to_human, #to_lsa_header
Instance Attribute Details
#dc_opt ⇒ Integer
This bit describes the router’s handling of demand circuits.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#e_opt ⇒ Integer
This bit describes the way AS-external-LSAs are flooded.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#n_opt ⇒ Integer
This bit indicates whether or not the router is attached to an NSSA.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#options ⇒ Integer
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#r_opt ⇒ Integer
This bit indicates whether the originator is an active router.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#reserved ⇒ Integer
114 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 114 define_attr :reserved, BinStruct::Int8 |
#routers ⇒ IP::ArrayOfAddr
List of routers attached to the link.
120 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 120 define_attr :routers, IP::ArrayOfAddr, builder: ->(h, t) { t.new(length_from: -> { h.length - h.offset_of(:routers) }) } |
#v6_opt ⇒ Integer
If this bit is clear, the router/link should be excluded from IPv6 routing calculations.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |
#x_opt ⇒ Integer
This bit should be set to 0, and ignored when received.
116 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 116 OSPFv3.(self) |