Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Ensure that out of window SYNs receive an ACK in...
details: https://anonhg.NetBSD.org/src/rev/9c8690676c1f
branches: trunk
changeset: 471742:9c8690676c1f
user: kml <kml%NetBSD.org@localhost>
date: Fri Apr 09 22:01:07 1999 +0000
description:
Ensure that out of window SYNs receive an ACK in responce, rather than
being dropped. This fixes a bug reported by Jason Thorpe.
diffstat:
sys/netinet/tcp_input.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 7700bf9f8690 -r 9c8690676c1f sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Fri Apr 09 21:29:21 1999 +0000
+++ b/sys/netinet/tcp_input.c Fri Apr 09 22:01:07 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.77 1999/02/05 22:37:24 matt Exp $ */
+/* $NetBSD: tcp_input.c,v 1.78 1999/04/09 22:01:07 kml Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -1104,8 +1104,12 @@
/*
* 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.
Home |
Main Index |
Thread Index |
Old Index