summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-10-12 17:37:25 +0000
committerwollman <wollman@FreeBSD.org>1995-10-12 17:37:25 +0000
commit4afe99dda1ec1050df5757c66a91e642bb0718d4 (patch)
tree00add62c3c7de27b8ae7616adcc2c40b1f6f9beb /sys/netinet/tcp_timewait.c
parent5820893213840443ff8ccce6d2a74b3ebd94e21f (diff)
downloadFreeBSD-src-4afe99dda1ec1050df5757c66a91e642bb0718d4.zip
FreeBSD-src-4afe99dda1ec1050df5757c66a91e642bb0718d4.tar.gz
The additional checks involving sequence numbers in MTU discovery resends
turned out not to be necessary; simply watching for MTU decreases (which we already did) automagically eliminates all the cases we were trying to protect against.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 0fe5d0f..4042083 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.17 1995/10/03 16:54:15 wollman Exp $
+ * $Id: tcp_subr.c,v 1.18 1995/10/10 17:45:40 wollman Exp $
*/
#include <sys/param.h>
@@ -525,12 +525,10 @@ tcp_mtudisc(inp, errno)
tp->t_maxseg = mss;
- if (SEQ_GT(tp->snd_una, tp->t_lastmturesend)) {
- tcpstat.tcps_mturesent++;
- tp->t_rtt = 0;
- tp->snd_nxt = tp->t_lastmturesend = tp->snd_una;
- tcp_output(tp);
- }
+ tcpstat.tcps_mturesent++;
+ tp->t_rtt = 0;
+ tp->snd_nxt = tp->snd_una;
+ tcp_output(tp);
}
}
#endif /* MTUDISC */
OpenPOWER on IntegriCloud