Class: PacketGen::Header::OSPFv3::LSALink
- Defined in:
- lib/packetgen/header/ospfv3/lsa.rb
Overview
This class handles OSPFv3 LSA Link payloads.
A Link payloads is composed of:
-
a 8-bit #router_priority field (
BinStruct::Int8
), -
a 24-bit #options field (
BinStruct::Int24
), -
a 128-bit IPv6 #interface_addr (IPv6::Addr),
-
a 32-bit #prefix_count field (
BinStruct::Int32
), -
and an array of IPv6Prefix (#prefixes, ArrayOfIPv6Prefix).
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.
-
#interface_addr ⇒ String
The originating router’s link-local interface address on the link.
-
#n_opt ⇒ Integer
This bit indicates whether or not the router is attached to an NSSA.
-
#options ⇒ Integer
24-bit options field.
-
#prefix_count ⇒ Integer
The number of IPv6 address prefixes contained in the LSA.
-
#prefixes ⇒ ArrayOfIPv6Prefix
List of IPv6 prefixes to be associated with the link.
-
#r_opt ⇒ Integer
This bit indicates whether the originator is an active router.
-
#router_priority ⇒ Integer
The Router Priority of the interface attaching the originating router 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
permalink #dc_opt ⇒ Integer
This bit describes the router’s handling of demand circuits.
180 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 180 OSPFv3.(self) |
permalink #e_opt ⇒ Integer
This bit describes the way AS-external-LSAs are flooded.
180 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 180 OSPFv3.(self) |
permalink #interface_addr ⇒ String
The originating router’s link-local interface address on the link.
184 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 184 define_attr :interface_addr, IPv6::Addr |
permalink #n_opt ⇒ Integer
This bit indicates whether or not the router is attached to an NSSA.
180 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 180 OSPFv3.(self) |
permalink #options ⇒ Integer
180 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 180 OSPFv3.(self) |
permalink #prefix_count ⇒ Integer
The number of IPv6 address prefixes contained in the LSA.
188 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 188 define_attr :prefix_count, BinStruct::Int32 |
permalink #prefixes ⇒ ArrayOfIPv6Prefix
List of IPv6 prefixes to be associated with the link.
192 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 192 define_attr :prefixes, ArrayOfIPv6Prefix, builder: ->(h, t) { t.new(counter: h[:prefix_count]) } |
permalink #r_opt ⇒ Integer
This bit indicates whether the originator is an active router.
180 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 180 OSPFv3.(self) |
permalink #router_priority ⇒ Integer
The Router Priority of the interface attaching the originating router to the link.
178 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 178 define_attr :router_priority, BinStruct::Int8 |