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) { _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"