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