Module: Proxy::DHCP::EfficientIp

Defined in:
lib/smart_proxy_efficient_ip.rb,
lib/smart_proxy_efficient_ip/api.rb,
lib/smart_proxy_efficient_ip/main.rb,
lib/smart_proxy_efficient_ip/const.rb,
lib/smart_proxy_efficient_ip/plugin.rb,
lib/smart_proxy_efficient_ip/version.rb,
lib/smart_proxy_efficient_ip/configuration.rb

Defined Under Namespace

Classes: Api, Configuration, Plugin, Provider

Constant Summary collapse

SIZE_TO_MASK =
{
  1 => '255.255.255.255',
  2 => '255.255.255.254',
  4 => '255.255.255.252',
  8 => '255.255.255.248',
  16 => '55.255.255.240',
  32 => '55.255.255.224',
  64 => '55.255.255.192',
  128 => '255.255.255.128',
  256 => '255.255.255.0',
  512 => '255.255.254.0',
  1024 => '55.255.252.0',
  2048 => '55.255.248.0',
  4096 => '55.255.240.0',
  8192 => '55.255.224.0',
  16384 => '255.255.192.0',
  32768 => '255.255.128.0',
  65536 => '255.255.0.0',
  131072 => '55.254.0.0',
  262144 => '55.252.0.0',
  524288 => '55.248.0.0',
  1048576 => '255.240.0.0',
  2097152 => '255.224.0.0',
  4194304 => '255.192.0.0',
  8388608 => '255.128.0.0',
  16777216 => '55.0.0.0',
  33554432 => '54.0.0.0',
  67108864 => '52.0.0.0',
  134217728 => '248.0.0.0',
  268435456 => '240.0.0.0',
  536870912 => '224.0.0.0',
  1073741824 => '92.0.0.0',
  2147483648 => '28.0.0.0',
  4294967296 => '0.0.0.0'
}.freeze
VERSION =
'0.0.12'.freeze