Lines 1-34
Link Here
|
1 |
--- tcp_subr.c.orig Fri Dec 29 15:45:51 1995 |
1 |
--- tcp_subr.c.orig Sun Jul 21 19:23:18 2002 |
2 |
+++ tcp_subr.c Fri Apr 16 09:03:57 1999 |
2 |
+++ tcp_subr.c Sun Jul 21 19:25:12 2002 |
3 |
@@ -238,14 +238,14 @@ |
3 |
@@ -241,7 +241,7 @@ |
4 |
* then send a RST to peer. |
4 |
* then send a RST to peer. |
5 |
*/ |
5 |
*/ |
6 |
struct tcpcb * |
6 |
struct tcpcb * |
7 |
-tcp_drop(tp, errno) |
7 |
-tcp_drop(struct tcpcb *tp, int errno) { |
8 |
+tcp_drop(tp, err) |
8 |
+tcp_drop(struct tcpcb *tp, int err) { |
|
|
9 |
/* tcp_drop(tp, errno) |
9 |
register struct tcpcb *tp; |
10 |
register struct tcpcb *tp; |
10 |
- int errno; |
11 |
int errno; |
11 |
+ int err; |
12 |
@@ -250,7 +250,7 @@ |
12 |
{ |
|
|
13 |
|
13 |
|
14 |
DEBUG_CALL("tcp_drop"); |
14 |
DEBUG_CALL("tcp_drop"); |
15 |
DEBUG_ARG("tp = %lx", (long)tp); |
15 |
DEBUG_ARG("tp = %lx", (long)tp); |
16 |
- DEBUG_ARG("errno = %d", errno); |
16 |
- DEBUG_ARG("errno = %d", errno); |
17 |
+ DEBUG_ARG("err = %d", err); |
17 |
+ DEBUG_ARG("errno = %d", err); |
18 |
|
18 |
|
19 |
if (TCPS_HAVERCVDSYN(tp->t_state)) { |
19 |
if (TCPS_HAVERCVDSYN(tp->t_state)) { |
20 |
tp->t_state = TCPS_CLOSED; |
20 |
tp->t_state = TCPS_CLOSED; |
21 |
@@ -253,10 +253,10 @@ |
|
|
22 |
tcpstat.tcps_drops++; |
23 |
} else |
24 |
tcpstat.tcps_conndrops++; |
25 |
-/* if (errno == ETIMEDOUT && tp->t_softerror) |
26 |
- * errno = tp->t_softerror; |
27 |
+/* if (err == ETIMEDOUT && tp->t_softerror) |
28 |
+ * err = tp->t_softerror; |
29 |
*/ |
30 |
-/* so->so_error = errno; */ |
31 |
+/* so->so_error = err; */ |
32 |
return (tcp_close(tp)); |
33 |
} |
34 |
|