[openib-general] [PATCH applied] sdp: return ECONNREFUSED on illegal address
Michael S. Tsirkin
mst at mellanox.co.il
Mon Dec 19 05:58:14 PST 2005
Make more ltp tests pass: attempts to connect to an illegal address
should return -ECONNREFUSED.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_inet.c
===================================================================
--- linux-2.6.14.orig/drivers/infiniband/ulp/sdp/sdp_inet.c 2005-12-19 18:29:43.000000000 +0200
+++ linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_inet.c 2005-12-19 18:30:09.000000000 +0200
@@ -468,7 +468,7 @@ static int sdp_inet_connect(struct socke
ZERONET(addr->sin_addr.s_addr) ||
LOCAL_MCAST(addr->sin_addr.s_addr) ||
INADDR_ANY == addr->sin_addr.s_addr)
- return -EINVAL;
+ return -ECONNREFUSED;
/*
* lock socket
*/
--
MST
More information about the general
mailing list