patch-1.3.22 linux/net/ipv4/tcp.c
Next file: linux/net/ipv4/udp.c
Previous file: linux/net/ipv4/raw.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu Aug 31 08:14:43 1995
- Orig file:
v1.3.21/linux/net/ipv4/tcp.c
- Orig date:
Mon Aug 28 14:52:26 1995
diff -u --recursive --new-file v1.3.21/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
@@ -879,22 +879,21 @@
return;
}
-/* sk->err = icmp_err_convert[err & 0xff].errno; -- moved as TCP should hide non fatals internally (and does) */
-
/*
* If we've already connected we will keep trying
* until we time out, or the user gives up.
*/
- if (err < 13 && (icmp_err_convert[err & 0xff].fatal || sk->state == TCP_SYN_SENT))
+ err &= 0xff;
+ if (err < 13 && (icmp_err_convert[err].fatal || sk->state == TCP_SYN_SENT))
{
+ sk->err = icmp_err_convert[err].errno;
if (sk->state == TCP_SYN_SENT)
{
tcp_statistics.TcpAttemptFails++;
tcp_set_state(sk,TCP_CLOSE);
sk->error_report(sk); /* Wake people up to see the error (see connect in sock.c) */
}
- sk->err = icmp_err_convert[err & 0xff].errno;
}
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this