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