Class: PacketGen::Header::OSPFv2::LSAASExternal

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

Overview

This class handles LSA AS-External payloads.

A LSA network payload is composed of:

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Constant Summary

Constants inherited from LSAHeader

PacketGen::Header::OSPFv2::LSAHeader::TYPES

Instance Attribute Summary collapse

Attributes inherited from LSAHeader

#advertising_router, #age, #checksum, #dc_opt, #dn_opt, #e_opt, #l_opt, #length, #link_state_id, #mc_opt, #mt_opt, #n_opt, #o_opt, #options, #sequence_number, #type

Method Summary

Methods inherited from LSAHeader

#calc_checksum, #calc_length, #human_type, #to_human, #to_lsa_header

Instance Attribute Details

#externalsArrayOfExternal

List of external destinations

Returns:



211
212
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 211

define_attr :externals, ArrayOfExternal,
builder: ->(h, t) { t.new(length_from: -> { h.length - 24 }) }

#netmaskIP::Addr

Returns:



207
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 207

define_attr :netmask, IP::Addr