Class: PacketGen::Header::OSPFv3::LSALink

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

Overview

This class handles OSPFv3 LSA Link payloads.

A Link 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

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_optBoolean

This bit describes the router's handling of demand circuits.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)

#e_optBoolean

This bit describes the way AS-external-LSAs are flooded.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)

#interface_addrString

The originating router's link-local interface address on the link.

Returns:

  • (String)

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

define_field :interface_addr, IPv6::Addr

#n_optBoolean

This bit indicates whether or not the router is attached to an NSSA.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)

#optionsInteger

24-bit options field. Handle #v6_opt, #e_opt, #x_opt, #n_opt, #r_opt and #dc_opt.

Returns:

  • (Integer)

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

OSPFv3.define_options(self)

#prefix_countInteger

The number of IPv6 address prefixes contained in the LSA.

Returns:

  • (Integer)

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

define_field :prefix_count, Types::Int32

#prefixesArrayOfIPv6Prefix

List of IPv6 prefixes to be associated with the link.

Returns:


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

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

#r_optBoolean

This bit indicates whether the originator is an active router.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)

#router_priorityInteger

The Router Priority of the interface attaching the originating router to the link.

Returns:

  • (Integer)

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

define_field :router_priority, Types::Int8

#v6_optBoolean

If this bit is clear, the router/link should be excluded from IPv6 routing calculations.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)

#x_optBoolean

This bit should be set to 0, and ignored when received.

Returns:

  • (Boolean)

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

OSPFv3.define_options(self)