diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1999-05-24 17:46:41 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1999-05-24 17:46:41 +0000 |
commit | 15692f0db44772091e8421fdfdbd95fd3a2fe04a (patch) | |
tree | 0ec3625ddfc1eafca720860d1fe09e92a57462b6 /sys | |
parent | feddcd1bffb463f4445a2afaa0e49e3cc5d2ee70 (diff) |
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')
-rw-r--r-- | sys/netinet/tcp_input.c | 10 |
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. |