Class: PacketGen::Header::OSPFv2::ArrayOfLSA

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

Overview

This class defines a specialized BinStruct::Array to handle series of LSAs. 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)

    BinStruct::Int object used as a counter for this set

  • :only_headers (Boolean)

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

Since:

  • 2.5.0



225
226
227
228
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 225

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