(net, prefixlen, version)
Check if a base addess of a network is compatible with a prefixlen
Check if a base addess of a network is compatible with a prefixlen
Check if a base addess of a network is compatible with a prefixlen
def _checkNetaddrWorksWithPrefixlen(net, prefixlen, version):
    """Check if a base addess of a network is compatible with a prefixlen"""
    if net & _prefixlenToNetmask(prefixlen, version) == net:
        return 1
    else:
        return 0
def _checkNetaddrWorksWithPrefixlen ( net , prefixlen , version ) : if net & _prefixlenToNetmask ( prefixlen , version ) == net : return 1 else : return 0