Method: PacketGen::Header::OSPFv2::ArrayOfLSA#initialize

Defined in:
lib/packetgen/header/ospfv2/lsa.rb

#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