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.
This commit is contained in:
parent
eb034ce46a
commit
3abc79d2ee
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_var.h 8.4 (Berkeley) 5/24/95
|
||||
* $Id: tcp_var.h,v 1.18 1995/10/04 20:49:03 wollman Exp $
|
||||
* $Id: tcp_var.h,v 1.19 1995/10/10 17:45:43 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_TCP_VAR_H_
|
||||
@ -141,8 +141,6 @@ struct tcpcb {
|
||||
caddr_t t_tuba_pcb; /* next level down pcb for TCP over z */
|
||||
/* More RTT stuff */
|
||||
u_long t_rttupdated; /* number of times rtt sampled */
|
||||
/* For MTU discovery */
|
||||
tcp_seq t_lastmturesend; /* seq of resend for mtu discovery */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user