Class: PacketGen::Header::OSPFv3::ArrayOfLSA

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

Overview

This class defines a specialized BinStruct::Array to handle series of LSAs or LSAHeaders. It recognizes known LSA types and infers correct type.

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ArrayOfLSA

Returns a new instance of ArrayOfLSA.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • counter (BinStruct::Int)

    Int object used as a counter for this set

  • only_headers (Integer)

    if true, only LSAHeaders will be added to this array.

Since:

  • 2.5.0



206
207
208
209
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 206

def initialize(options={})
  super
  @only_headers = options[:only_headers] || false
end