mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
7758e17a1c
PR: 10414 Submitted by: Timothy J. Lee <timlee@netcom.com>
35 lines
779 B
Plaintext
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));
|
|
}
|
|
|