From 5c00ec94510f80a57114389fc674a445b12b04d1 Mon Sep 17 00:00:00 2001 From: provos Date: Mon, 24 May 1999 17:46:40 +0000 Subject: 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 --- sys/netinet/tcp_input.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sys/netinet/tcp_input.c') 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. -- cgit v1.2.3-59-g8ed1b