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