[ofa-general] [PATCH 1/1] SDP - Bug294: SDP connect() only allows AF_INET (2), not AF_INET_SDP (27)
Jim Mott
jim at mellanox.com
Fri Jan 4 12:59:38 PST 2008
Signed-off-by: Jim Mott <jim at mellanox.com>
---
Index: ofed_1_3/drivers/infiniband/ulp/sdp/sdp_main.c
===================================================================
--- ofed_1_3.orig/drivers/infiniband/ulp/sdp/sdp_main.c 2008-01-04
12:21:51.000000000 -0800
+++ ofed_1_3/drivers/infiniband/ulp/sdp/sdp_main.c 2008-01-04
12:25:06.000000000 -0800
@@ -593,7 +593,7 @@ static int sdp_connect(struct sock *sk,
if (addr_len < sizeof(struct sockaddr_in))
return -EINVAL;
- if (uaddr->sa_family != AF_INET)
+ if (uaddr->sa_family != AF_INET && uaddr->sa_family !=
AF_INET_SDP)
return -EAFNOSUPPORT;
if (!ssk->id) {
More information about the general
mailing list