Sha256: 74c702926aef8469ea4d871f916f876a015f93214b3ff69d78d23cfa5f09746d

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

# encoding: utf-8

require 'pio/type/mac_address'

module Pio
  class Dhcp
    # Dhcp Client Id Format
    class ClientId < BinData::Primitive
      bit8 :hardwaretype, value: 1
      mac_address :mac

      def get
        mac
      end

      def set(value)
        self.mac = value
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pio-0.8.1 lib/pio/dhcp/client_id.rb
pio-0.8.0 lib/pio/dhcp/client_id.rb
pio-0.7.0 lib/pio/dhcp/client_id.rb
pio-0.6.0 lib/pio/dhcp/client_id.rb
pio-0.5.0 lib/pio/dhcp/client_id.rb
pio-0.4.0 lib/pio/dhcp/type/dhcp_client_id.rb