Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2018 21:23:31 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330357 - stable/11/sys/netinet
Message-ID:  <201803032123.w23LNVWD062950@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Mar  3 21:23:31 2018
New Revision: 330357
URL: https://svnweb.freebsd.org/changeset/base/330357

Log:
  MFC r306767:
  
  Correctly calculate snd_max in persist case.
  
  In the persist case, take the SYN and FIN flags into account when updating
  the sequence space sent.

Modified:
  stable/11/sys/netinet/tcp_output.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/tcp_output.c
==============================================================================
--- stable/11/sys/netinet/tcp_output.c	Sat Mar  3 21:14:55 2018	(r330356)
+++ stable/11/sys/netinet/tcp_output.c	Sat Mar  3 21:23:31 2018	(r330357)
@@ -1545,7 +1545,7 @@ timer:
 			tp->t_flags |= TF_SENTFIN;
 		}
 		if (SEQ_GT(tp->snd_nxt + xlen, tp->snd_max))
-			tp->snd_max = tp->snd_nxt + len;
+			tp->snd_max = tp->snd_nxt + xlen;
 	}
 
 	if (error) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803032123.w23LNVWD062950>