From 8c8076b8893f5967b3d23da0f7ee6c093902ef3d Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 18 Jul 2013 13:26:15 -0700 Subject: [PATCH] rsockets: Support native IB addressing on connected rsockets Update rsockets to support AF_IB addresses on connected rsockets. Support for datagram rsockets is more difficult as a result of using real UDP sockets for QP resolution, so that support is deferred. For connected sockets, we need to update internal checks to handle AF_IB. Allow the user to specify GID addresses into the rsocket sample applications. Signed-off-by: Sean Hefty --- src/rsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsocket.c b/src/rsocket.c index abdd392e..1a6d989d 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -1063,7 +1063,7 @@ int rsocket(int domain, int type, int protocol) struct rsocket *rs; int index, ret; - if ((domain != PF_INET && domain != PF_INET6) || + if ((domain != AF_INET && domain != AF_INET6 && domain != AF_IB) || ((type != SOCK_STREAM) && (type != SOCK_DGRAM)) || (type == SOCK_STREAM && protocol && protocol != IPPROTO_TCP) || (type == SOCK_DGRAM && protocol && protocol != IPPROTO_UDP)) -- 2.41.0