rdma_get_src_port

Returns the local port number of a bound rdma_cm_id.

Syntax

#include <rdma/rdma_cma.h>
uint16_t rdma_get_src_port(struct rdma_cm_id *id)

Description

The rdma_get_src_port function returns the local port number for an rdma_cm_id that has been bound to a local address.

Parameters

id Specifies the connection identifier associated with the request.

Return Values

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