Class: PacketGen::Header::OSPFv3::LSANetwork
- Inherits:
-
LSAHeader
- Object
- Types::Fields
- 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 ⇒ Boolean
This bit describes the router’s handling of demand circuits.
-
#e_opt ⇒ Boolean
This bit describes the way AS-external-LSAs are flooded.
-
#n_opt ⇒ Boolean
This bit indicates whether or not the router is attached to an NSSA.
-
#options ⇒ Integer
24-bit options field.
-
#r_opt ⇒ Boolean
This bit indicates whether the originator is an active router.
- #reserved ⇒ Integer
-
#routers ⇒ IP::ArrayOfAddr
List of routers attached to the link.
-
#v6_opt ⇒ Boolean
If this bit is clear, the router/link should be excluded from IPv6 routing calculations.
-
#x_opt ⇒ Boolean
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
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
This class inherits a constructor from PacketGen::Types::Fields
Instance Attribute Details
#dc_opt ⇒ Boolean
This bit describes the router’s handling of demand circuits.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#e_opt ⇒ Boolean
This bit describes the way AS-external-LSAs are flooded.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#n_opt ⇒ Boolean
This bit indicates whether or not the router is attached to an NSSA.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#options ⇒ Integer
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#r_opt ⇒ Boolean
This bit indicates whether the originator is an active router.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#reserved ⇒ Integer
103 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 103 define_field :reserved, Types::Int8 |
#routers ⇒ IP::ArrayOfAddr
List of routers attached to the link.
109 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 109 define_field :routers, IP::ArrayOfAddr, builder: ->(h, t) { t.new(length_from: -> { h.length - h.offset_of(:routers) }) } |
#v6_opt ⇒ Boolean
If this bit is clear, the router/link should be excluded from IPv6 routing calculations.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |
#x_opt ⇒ Boolean
This bit should be set to 0, and ignored when received.
105 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 105 OSPFv3.(self) |