Creates a new InetAddressMask representing all addresses whose first length bits match addr.
length
addr
a InetAddress
number of bits of addr to use
a new InetAddressMask, or null on error