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 inherited from Types::Fields

#[], #[]=, #bits_on, #body=, define_bit_fields_on, define_field, define_field_after, define_field_before, delete_field, fields, #fields, #force_binary, inherited, #initialize, #inspect, #is_optional?, #is_present?, #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.



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

OSPFv3.define_options(self)

#e_optBoolean

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



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

OSPFv3.define_options(self)

#interface_addrString

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



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

define_field :interface_addr, IPv6::Addr

#n_optBoolean

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



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

OSPFv3.define_options(self)

#optionsInteger

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



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

OSPFv3.define_options(self)

#prefix_countInteger

The number of IPv6 address prefixes contained in the LSA.



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

define_field :prefix_count, Types::Int32

#prefixesArrayOfIPv6Prefix

List of IPv6 prefixes to be associated with the link.



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

define_field :prefixes, ArrayOfIPv6Prefix

#r_optBoolean

This bit indicates whether the originator is an active router.



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

OSPFv3.define_options(self)

#router_priorityInteger

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



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

define_field :router_priority, Types::Int8

#v6_optBoolean

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



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

OSPFv3.define_options(self)

#x_optBoolean

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



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

OSPFv3.define_options(self)