rdma_get_local_addr

Returns the local IP address of a bound rdma_cm_id.

Syntax

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

Description

The rdma_get_local_addr function returns the local IP address for an rdma_cm_id that is bound to a local device.

Parameters

id Specifies the RDMA identifier.

Return Values

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