• returns a number of leading ones in IPv4 address, making sure that the rest is a solid sequence of zeros (valid netmask)

    Parameters

    Returns Prefix | undefined

    Either the CIDR length or undefined if mask is not valid