summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>1999-05-24 17:46:40 +0000
committerprovos <provos@openbsd.org>1999-05-24 17:46:40 +0000
commit5c00ec94510f80a57114389fc674a445b12b04d1 (patch)
treee78de3766a9f820c1b69d1e6e7320caa48a2d9bb /sys/netinet/tcp_input.c
parentcorrect return value of poll(); noted by d@ (diff)
downloadwireguard-openbsd-5c00ec94510f80a57114389fc674a445b12b04d1.tar.xz
wireguard-openbsd-5c00ec94510f80a57114389fc674a445b12b04d1.zip
instead of dropping out of window SYNs, send an ACK and drop afterwards.
fixes a problem with NFS over TCP reported by Jason Thorpe, fix from klm@netbsd.org
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index e9d4d1277de..15b0a09daa4 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.34 1999/04/21 21:38:58 provos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.35 1999/05/24 17:46:40 provos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1481,8 +1481,12 @@ trimthenstep6:
/*
* If the ACK bit is off we drop the segment and return.
*/
- if ((tiflags & TH_ACK) == 0)
- goto drop;
+ if ((tiflags & TH_ACK) == 0) {
+ if (tp->t_flags & TF_ACKNOW)
+ goto dropafterack;
+ else
+ goto drop;
+ }
/*
* Ack processing.