Sha256: ef7675c981a71551a5c7978029a09645a7d54821dd431dc67a6f90b0edc770aa

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

#Author: Piotr Wojcieszonek
#e-mail: piotr@wojcieszonek.pl
# Copyright 22.03.2016 by Piotr Wojcieszonek


require_relative 'option'
require_relative 'type/ip_array'

module Lib
  module DHCP
    class Option6 < Option
      # Domain Name Server Option.The minimum length for the router option is 4 octets, and the length MUST always be
      # a multiple of 4 Multiple IP ADDRESS

      include Type::IPArray

      alias_method :domain_name_server, :payload
      alias_method :dns, :payload
      alias_method :domain_name_server=, :payload=
      alias_method :dns=, :payload=
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lib-dhcp-0.2.0 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.8 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.4 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.3 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.2 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.1 lib/lib/dhcp/options/option6.rb
lib-dhcp-0.1.0 lib/lib/dhcp/options/option6.rb