]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rst-afib
authorSean Hefty <sean.hefty@intel.com>
Thu, 18 Jul 2013 20:40:50 +0000 (13:40 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 18 Jul 2013 20:40:50 +0000 (13:40 -0700)
src/rsocket.c

index abdd392ed215955dc1c84597b370ee4f8f2d8953..1a6d989d46e3f699147eba5f45d05dd674d3808b 100644 (file)
@@ -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))