Sha256: bb9461689552b88e36b89ecff999471decde4383bc32c294394ad813099527c3
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true require 'bindata' module Pio class Lldp # Time to live TLV class TtlTlv < BinData::Primitive endian :big bit7 :tlv_type, value: 3 bit9 :tlv_info_length, value: 2 string :ttl, read_length: :tlv_info_length def get BinData::Int16be.read(ttl) end def set(value) self.ttl = BinData::Int16be.new(value).to_binary_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | lib/pio/lldp/ttl_tlv.rb |