Class: PacketGen::Header::OSPFv3::LSANetwork

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

Overview

This class handles OSPFv3 LSA Network payloads.

A LSA network payload 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)


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

OSPFv3.define_options(self)

#e_optBoolean

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

Returns:

  • (Boolean)


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

OSPFv3.define_options(self)

#n_optBoolean

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

Returns:

  • (Boolean)


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

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)


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

OSPFv3.define_options(self)

#r_optBoolean

This bit indicates whether the originator is an active router.

Returns:

  • (Boolean)


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

OSPFv3.define_options(self)

#reservedInteger

Returns:

  • (Integer)


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

define_field :reserved, Types::Int8

#routersIP::ArrayOfAddr

List of routers attached to the link.

Returns:



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

define_field :routers, IP::ArrayOfAddr, builder: ->(h, t) { t.new(length_from: -> { h.length - h.offset_of(:routers) }) }

#v6_optBoolean

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

Returns:

  • (Boolean)


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

OSPFv3.define_options(self)

#x_optBoolean

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

Returns:

  • (Boolean)


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

OSPFv3.define_options(self)