Whamcloud - gitweb
LU-10391 lnet: allow lnet_connect() to use IPv6 addresses.
[fs/lustre-release.git] / lnet / lnet / acceptor.c
index 9103515..159a85e 100644 (file)
@@ -145,7 +145,8 @@ lnet_connect(lnet_nid_t peer_nid, int interface, struct sockaddr *peeraddr,
 
        BUILD_BUG_ON(sizeof(cr) > 16); /* not too big to be on the stack */
 
-       LASSERT(peeraddr->sa_family == AF_INET);
+       LASSERT(peeraddr->sa_family == AF_INET ||
+               peeraddr->sa_family == AF_INET6);
 
        for (port = LNET_ACCEPTOR_MAX_RESERVED_PORT;
             port >= LNET_ACCEPTOR_MIN_RESERVED_PORT;