method
addr_mask
addr_mask(addr)
private
Hide source
# File lib/ipaddr.rb, line 572 def addr_mask(addr) case @family when Socket::AF_INET return addr & IN4MASK when Socket::AF_INET6 return addr & IN6MASK else raise AddressFamilyError, "unsupported address family" end end