Class: PacketGen::Header::OSPFv2::LSA
- Defined in:
- lib/packetgen/header/ospfv2/lsa.rb
Overview
Constant Summary
Constants inherited from LSAHeader
PacketGen::Header::OSPFv2::LSAHeader::TYPES
Instance Attribute Summary collapse
-
#body ⇒ String
LSA body.
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
#body ⇒ String
LSA body
19 20 |
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 19 define_attr :body, BinStruct::String, builder: ->(h, t) { t.new(length_from: -> { h.length - 20 }) } |