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

Inherits:
LSAHeader
  • Object
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

Instance Attribute Details

#dc_optInteger

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

Returns:

  • (Integer)

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

OSPFv3.define_options(self)

#e_optInteger

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

Returns:

  • (Integer)

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

OSPFv3.define_options(self)

#interface_addrString

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

Returns:

  • (String)

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

define_attr :interface_addr, IPv6::Addr

#n_optInteger

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

Returns:

  • (Integer)

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

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)

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

OSPFv3.define_options(self)

#prefix_countInteger

The number of IPv6 address prefixes contained in the LSA.

Returns:

  • (Integer)

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

define_attr :prefix_count, BinStruct::Int32

#prefixesArrayOfIPv6Prefix

List of IPv6 prefixes to be associated with the link.

Returns:


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

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

#r_optInteger

This bit indicates whether the originator is an active router.

Returns:

  • (Integer)

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

OSPFv3.define_options(self)

#router_priorityInteger

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

Returns:

  • (Integer)

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

define_attr :router_priority, BinStruct::Int8

#v6_optInteger

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

Returns:

  • (Integer)

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

OSPFv3.define_options(self)

#x_optInteger

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

Returns:

  • (Integer)

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

OSPFv3.define_options(self)