tcp_timer.c (a4f757cd5dc1421d90d72a34853247e0c2c18cce) tcp_timer.c (c94c54e4df9ae401d299ca3b08f00acade2fccc8)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 527 unchanged lines hidden (view full) ---

536 tcpstat.tcps_rexmttimeo++;
537 if (tp->t_state == TCPS_SYN_SENT)
538 rexmt = TCP_REXMTVAL(tp) * tcp_syn_backoff[tp->t_rxtshift];
539 else
540 rexmt = TCP_REXMTVAL(tp) * tcp_backoff[tp->t_rxtshift];
541 TCPT_RANGESET(tp->t_rxtcur, rexmt,
542 tp->t_rttmin, TCPTV_REXMTMAX);
543 /*
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 527 unchanged lines hidden (view full) ---

536 tcpstat.tcps_rexmttimeo++;
537 if (tp->t_state == TCPS_SYN_SENT)
538 rexmt = TCP_REXMTVAL(tp) * tcp_syn_backoff[tp->t_rxtshift];
539 else
540 rexmt = TCP_REXMTVAL(tp) * tcp_backoff[tp->t_rxtshift];
541 TCPT_RANGESET(tp->t_rxtcur, rexmt,
542 tp->t_rttmin, TCPTV_REXMTMAX);
543 /*
544 * Disable rfc1323 and rfc1644 if we havn't got any response to
544 * Disable rfc1323 if we havn't got any response to
545 * our third SYN to work-around some broken terminal servers
546 * (most of which have hopefully been retired) that have bad VJ
547 * header compression code which trashes TCP segments containing
548 * unknown-to-them TCP options.
549 */
550 if ((tp->t_state == TCPS_SYN_SENT) && (tp->t_rxtshift == 3))
545 * our third SYN to work-around some broken terminal servers
546 * (most of which have hopefully been retired) that have bad VJ
547 * header compression code which trashes TCP segments containing
548 * unknown-to-them TCP options.
549 */
550 if ((tp->t_state == TCPS_SYN_SENT) && (tp->t_rxtshift == 3))
551 tp->t_flags &= ~(TF_REQ_SCALE|TF_REQ_TSTMP|TF_REQ_CC);
551 tp->t_flags &= ~(TF_REQ_SCALE|TF_REQ_TSTMP);
552 /*
553 * If we backed off this far, our srtt estimate is probably bogus.
554 * Clobber it so we'll take the next rtt measurement as our srtt;
555 * move the current srtt into rttvar to keep the current
556 * retransmit times until then.
557 */
558 if (tp->t_rxtshift > TCP_MAXRXTSHIFT / 4) {
559#ifdef INET6

--- 64 unchanged lines hidden ---
552 /*
553 * If we backed off this far, our srtt estimate is probably bogus.
554 * Clobber it so we'll take the next rtt measurement as our srtt;
555 * move the current srtt into rttvar to keep the current
556 * retransmit times until then.
557 */
558 if (tp->t_rxtshift > TCP_MAXRXTSHIFT / 4) {
559#ifdef INET6

--- 64 unchanged lines hidden ---