Fix statistical accounting for bytes and packets during sack retransmits.

MFC after:	1 week
Submitted by:	mohans
This commit is contained in:
jhb 2007-05-18 19:56:24 +00:00
parent 3b7f8bde24
commit b753e575a7

View File

@ -749,7 +749,7 @@ send:
if ((tp->t_flags & TF_FORCEDATA) && len == 1)
tcpstat.tcps_sndprobe++;
else if (SEQ_LT(tp->snd_nxt, tp->snd_max)) {
else if (SEQ_LT(tp->snd_nxt, tp->snd_max) || sack_rxmit) {
tcpstat.tcps_sndrexmitpack++;
tcpstat.tcps_sndrexmitbyte += len;
} else {