Returns the local port number of a bound rdma_cm_id.
#include <rdma/rdma_cma.h> uint16_t rdma_get_src_port(struct rdma_cm_id *id)
The rdma_get_src_port function returns the local port number for an rdma_cm_id that has been bound to a local address.
id | Specifies the connection identifier associated with the request. |
local port number | On success. |
0 | The error occurs if the id is NULL. |