import ipaddress


def get_all_hosts(ipnet):
    """ 
    Generate the list of all possible hosts within a network

    Arguments:
    ipnet   --   an IP network address in the form
                 <ip>/subnet such as 192.168.1.0/24
                 or 69f6:a34:2efb:19ca:d40::/74

    Returns:
    all hosts -- a generator for all IP address objects 
                 that represent all the possible hosts 
                 that can exist within the specified network
    """
    return ipaddress.ip_network(ipnet).hosts()