expectation_lookup(struct hmap *alg_expectations,
                   const struct conn_key *key, uint32_t basis)
{
    struct conn_key check_key = *key;
    check_key.src.port = ALG_WC_SRC_PORT;
    struct alg_exp_node *alg_exp_node;

    uint32_t alg_exp_conn_key_hash = conn_key_hash(&check_key, basis);
    HMAP_FOR_EACH_WITH_HASH (alg_exp_node, node,
                             alg_exp_conn_key_hash,
                             alg_expectations) {
        if (!conn_key_cmp(&alg_exp_node->key, &check_key)) {
            return alg_exp_node;
        }
    }
    return NULL;
}
expectation_lookup(struct hmap *alg_expectations,
                   const struct conn_key *key, uint32_t basis)
{
    struct conn_key check_key = *key;
    check_key.src.port = ALG_WC_SRC_PORT;
    struct alg_exp_node *alg_exp_node;

    uint32_t alg_exp_conn_key_hash = conn_key_hash(&check_key, basis);
    HMAP_FOR_EACH_WITH_HASH (alg_exp_node, node,
                             alg_exp_conn_key_hash,
                             alg_expectations) {
        if (!conn_key_cmp(&alg_exp_node->key, &check_key)) {
            return alg_exp_node;
        }
    }
    return NULL;
}