1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/net/slirp/files/patch-ab
Michael Haro 7758e17a1c Make slirp not broken
PR:		10414
Submitted by:	Timothy J. Lee <timlee@netcom.com>
1999-04-16 16:14:10 +00:00

35 lines
779 B
Plaintext

--- 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));
}