nat_conn_keys_insert(struct hmap *nat_conn_keys, const struct conn *nat_conn,
                     uint32_t basis)
{
    struct nat_conn_key_node *nat_conn_key_node =
        nat_conn_keys_lookup(nat_conn_keys, &nat_conn->rev_key, basis);

    if (!nat_conn_key_node) {
        struct nat_conn_key_node *nat_conn_key = xzalloc(sizeof *nat_conn_key);
        nat_conn_key->key = nat_conn->rev_key;
        nat_conn_key->value = nat_conn->key;
        uint32_t nat_conn_key_hash = conn_key_hash(&nat_conn_key->key,
                                                   basis);
        hmap_insert(nat_conn_keys, &nat_conn_key->node, nat_conn_key_hash);
        return true;
    }
    return false;
}
nat_conn_keys_insert(struct hmap *nat_conn_keys, const struct conn *nat_conn,
                     uint32_t basis)
{
    struct nat_conn_key_node *nat_conn_key_node =
        nat_conn_keys_lookup(nat_conn_keys, &nat_conn->rev_key, basis);

    if (!nat_conn_key_node) {
        struct nat_conn_key_node *nat_conn_key = xzalloc(sizeof *nat_conn_key);
        nat_conn_key->key = nat_conn->rev_key;
        nat_conn_key->value = nat_conn->key;
        uint32_t nat_conn_key_hash = conn_key_hash(&nat_conn_key->key,
                                                   basis);
        hmap_insert(nat_conn_keys, &nat_conn_key->node, nat_conn_key_hash);
        return true;
    }
    return false;
}