rdma_get_peer_addr

Returns the remote IP address of the associated communication identifier.

Syntax

#include <rdma/rdma_cma.h>
struct sockaddr *rdma_get_peer_addr(struct rdma_cm_id *id)

Description

The rdma_get_peer_addr function returns the remote IP address that is associated with an rdma_cm_id identifier.

Parameters

Item Description
id Specifies the RDMA identifier.

Return Values

The rdma_get_peer_addr function returns a pointer to the sockaddr address of the connected peer. If the rdma_cm_id identifier is not connected, the contents of the sockaddr structure is set to zero.