Class: PacketGen::Header::OSPFv3::LSAIntraAreaPrefix

Inherits:
LSAHeader
  • Object
show all
Defined in:
lib/packetgen/header/ospfv3/lsa.rb

Overview

This class handles OSPFv3 LSA Intra-Area-Prefix payloads.

An Intra-Area-Prefix payloads is composed of:

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Constant Summary

Constants inherited from LSAHeader

PacketGen::Header::OSPFv3::LSAHeader::TYPES

Instance Attribute Summary collapse

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

#prefix_countInteger

The number of IPv6 address prefixes contained in the LSA.

Returns:

  • (Integer)


137
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 137

define_attr :prefix_count, BinStruct::Int16

#prefixesArrayOfIPv6Prefix

Array of IPv6Prefix. Note for this LSA, IPv6Prefix#reserved is used as metric value.

Returns:



160
161
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 160

define_attr :prefixes, ArrayOfIPv6Prefix,
builder: ->(h, t) { t.new(counter: h[:prefix_count]) }

#ref_advertising_routerString

Used to identify the router-LSA or network-LSA with which the IPv6 address prefixes should be associated, in association with #ref_link_state_id and #ref_ls_type.

Returns:

  • (String)


155
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 155

define_attr :ref_advertising_router, IP::Addr

Used to identify the router-LSA or network-LSA with which the IPv6 address prefixes should be associated, in association with #ref_ls_type and #ref_advertising_router.

Returns:

  • (String)


149
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 149

define_attr :ref_link_state_id, IP::Addr

#ref_ls_typeInteger

Used to identify the router-LSA or network-LSA with which the IPv6 address prefixes should be associated, in association with #ref_link_state_id and #ref_advertising_router.

Returns:

  • (Integer)


143
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 143

define_attr :ref_ls_type, BinStruct::Int16Enum, enum: TYPES