def _check_all_keys_hit_entry(entry, n_atoms, base_key):
    """

    :param entry: routing entry discovered
    :param n_atoms: the number of atoms this partition covers
    :param base_key: the base key of the partition
    :return: the list of keys which this entry doesn't cover which it should
    """
    bad_entries = list()
    for atom_id in range(0, n_atoms):
        key = base_key + atom_id
        key_combo = entry.mask & key
        if key_combo != entry.routing_entry_key:
            bad_entries.append(key)
    return bad_entries