[Apologies for the cross-post]

I see that the OFED stack supports IPv6 in many places, so I was wondering
why we have this in rdma_listen():

int rdma_listen(struct rdma_cm_id *id, int backlog)
{
        struct rdma_id_private *id_priv;
        int ret;

        id_priv = container_of(id, struct rdma_id_private, id);
        if (id_priv->state == CMA_IDLE) {
>>            ((struct sockaddr *) &id->route.addr.src_addr)->sa_family =
AF_INET;
                ret = rdma_bind_addr(id, (struct sockaddr *)
&id->route.addr.src_addr);
                if (ret)
                        return ret;
        }

Even for v4, should the caller already fill in the family?

-vijay
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to