PR 13952: Noritoshi Demizu: correct the TCP window information update check.
This commit is contained in:
parent
08fcaa05cf
commit
ae6865ba83
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_input.c,v 1.238 2006/02/02 05:52:23 riz Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.239 2006/02/18 17:34:49 rpaulo Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -150,7 +150,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.238 2006/02/02 05:52:23 riz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.239 2006/02/18 17:34:49 rpaulo Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -2432,8 +2432,8 @@ step6:
|
|||
* Don't look at window if no ACK: TAC's send garbage on first SYN.
|
||||
*/
|
||||
if ((tiflags & TH_ACK) && (SEQ_LT(tp->snd_wl1, th->th_seq) ||
|
||||
(tp->snd_wl1 == th->th_seq && SEQ_LT(tp->snd_wl2, th->th_ack)) ||
|
||||
(tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd))) {
|
||||
(tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) ||
|
||||
(tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd))))) {
|
||||
/* keep track of pure window updates */
|
||||
if (tlen == 0 &&
|
||||
tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd)
|
||||
|
|
Loading…
Reference in New Issue