Sha256: 370c9ce0ecb1f59e3deb9a01715f03ca295ad1a26420ae1e134c9ab04a5e4556

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

require 'bindata'

module Pio
  class Lldp
    # TLV value field of management address TLV
    class ManagementAddressValue < BinData::Record
      endian :big

      uint8 :string_length
      uint8 :subtype
      string :management_address, read_length: -> { string_length - 1 }
      uint8 :interface_numbering_subtype
      uint32 :interface_number
      uint8 :oid_string_length
      string :object_identifier, read_length: -> { oid_string_length }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.30.2 lib/pio/lldp/management_address_value.rb