Module: BetterIpaddr::Constants
- Included in:
- InstanceMethods, IPAddr, IPAddr::Base
- Defined in:
- lib/better_ipaddr/constants.rb
Overview
Namespace for constants used by BetterIpaddr
Defined Under Namespace
Constant Summary collapse
- SYMBOL_TO_FAMILY =
Map well known address family names to constants.
{ ipv4: Family::IPV4, ipv6: Family::IPV6, eui48: Family::EUI48, eui64: Family::EUI64, mac: Family::EUI48 }.freeze
- FAMILY_TO_BIT_LENGTH =
Map each address family to the size of its address space, in bits.
{ Family::IPV4 => 32, Family::IPV6 => 128, Family::EUI48 => 48, Family::EUI64 => 64 }.freeze
- PREFIX_LENGTH_TO_NETMASK =
Map all possible prefix lengths to the corresponding netmasks.
{}
- NETMASK_TO_PREFIX_LENGTH =
Map all possible netmasks to the corresponding prefix lengths.
{}