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 <sean.hefty@intel.com>
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))