summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayanth Vijayaraghavan <jayanth@FreeBSD.org>2001-08-29 23:54:13 +0000
committerJayanth Vijayaraghavan <jayanth@FreeBSD.org>2001-08-29 23:54:13 +0000
commite7e2b8018452c041381375b0236a226c8ccb352a (patch)
tree3e450d0b6ddbace337727dea6b849ea7b1177824
parent2b8bab2f343c7709d26d253250ac611ff665acf5 (diff)
Notes
-rw-r--r--sys/netinet/tcp_input.c2
-rw-r--r--sys/netinet/tcp_reass.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 359221318145..38f4a3efcc10 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1885,6 +1885,8 @@ trimthenstep6:
tp->snd_cwnd = tp->snd_ssthresh;
tp->t_dupacks = 0;
}
+ if (tp->t_dupacks < tcprexmtthresh)
+ tp->t_dupacks = 0;
if (SEQ_GT(th->th_ack, tp->snd_max)) {
tcpstat.tcps_rcvacktoomuch++;
goto dropafterack;
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 359221318145..38f4a3efcc10 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -1885,6 +1885,8 @@ trimthenstep6:
tp->snd_cwnd = tp->snd_ssthresh;
tp->t_dupacks = 0;
}
+ if (tp->t_dupacks < tcprexmtthresh)
+ tp->t_dupacks = 0;
if (SEQ_GT(th->th_ack, tp->snd_max)) {
tcpstat.tcps_rcvacktoomuch++;
goto dropafterack;