]> 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)
commitfd89a2821a91540937b5125ddf862ab31d4f2132
tree0fe9873298edf4cada887e75c401246a8cdab420
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/addrinfo.c