diff options
author | 1999-01-27 16:47:29 +0000 | |
---|---|---|
committer | 1999-01-27 16:47:29 +0000 | |
commit | e2b5f08291e40862be40632fd81b16261d09cf5e (patch) | |
tree | 5c3a3d5a9513503ab8b4827fcb61d5fa8e7bc358 /sys/netinet/tcp_timer.c | |
parent | reordered FIN segments caused early termination, bug introduced by ipv6 integration (diff) | |
download | wireguard-openbsd-e2b5f08291e40862be40632fd81b16261d09cf5e.tar.xz wireguard-openbsd-e2b5f08291e40862be40632fd81b16261d09cf5e.zip |
fix NEWRENO behaviour, the newreo code assumed that the send socket buffer has
already been cleared of the acked data, though it was called before any
sbdrop() call and always called tcp_output() with 0 index in the send
socket buffer and thus causing data corruption. so do not set snd_una to
th_ack.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index bd2d69c8fa6..217cb6464f0 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_timer.c,v 1.10 1998/11/25 05:44:37 millert Exp $ */ +/* $OpenBSD: tcp_timer.c,v 1.11 1999/01/27 16:47:29 provos Exp $ */ /* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */ /* @@ -247,9 +247,6 @@ tcp_timers(tp, timer) tp->t_srtt = 0; } tp->snd_nxt = tp->snd_una; -#if defined (TCP_NEWRENO) || defined (TCP_SACK) - tp->snd_last = tp->snd_una; -#endif /* * If timing a segment in this window, stop the timer. */ |