static ucs_status_t uct_cm_iface_get_address(uct_iface_h tl_iface, struct sockaddr *addr) { uct_cm_iface_t *iface = ucs_derived_of(tl_iface, uct_cm_iface_t); uct_sockaddr_ib_t *ib_addr = (uct_sockaddr_ib_t *)addr; uct_ib_iface_get_address(&iface->super.super.super, addr); ib_addr->id = iface->service_id; return UCS_OK; }
ucs_status_t uct_ud_ep_get_address(uct_ep_h tl_ep, struct sockaddr *addr) { uct_ud_ep_t *ep = ucs_derived_of(tl_ep, uct_ud_ep_t); uct_ud_iface_t *iface = ucs_derived_of(ep->super.super.iface, uct_ud_iface_t); uct_sockaddr_ib_t *ib_addr = (uct_sockaddr_ib_t *)addr; uct_ib_iface_get_address(&iface->super.super.super, addr); ib_addr->qp_num = iface->qp->qp_num; ib_addr->id = ep->ep_id; return UCS_OK; }