]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Support using GIDs with rdma_getaddrinfo
authorSean Hefty <sean.hefty@intel.com>
Tue, 28 Aug 2012 19:33:04 +0000 (12:33 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 29 Aug 2012 00:41:33 +0000 (17:41 -0700)
commit85f5450d0f68ce36d85b46e31a45c6e4bbee333a
tree6b67ab7929dea022d63f78b08828f18a26afca60
parenta7ae817991416863772d28d97839ee8daeefb07e
librdmacm: Support using GIDs with rdma_getaddrinfo

Allow the user to specify a GID as the node parameter into
rdma_getaddrinfo.

To distinguish between the node being an IPv6 address or a GID,
we add a new flag, RAI_FAMILY, which can be set as part of the
hints to rdma_getaddrinfo.  When set, this flag indicates that the
value of ai_family in the hints should be used when interpretting
the node parameter.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
include/rdma/rdma_cma.h
man/rdma_getaddrinfo.3
src/acm.c
src/addrinfo.c
src/cma.c
src/cma.h