rdma_get_peer_addr

Returns the remote IP address of a bound rdma_cm_id.

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 associated with an rdma_cm_id.

Parameters

id Specifies the RDMA identifier.

Return Values

The rdma_get_peer_addr function returns the following values:
local port number On success.
0 The error occurs if the id is NULL.
[ Feedback ]