lint
[unix-history] / usr / src / sys / netinet / tcp_timer.h
index 160f837..55551b3 100644 (file)
@@ -1,4 +1,4 @@
-/*     tcp_timer.h     4.4     81/12/21        */
+/*     tcp_timer.h     4.9     82/12/20        */
 
 /*
  * Definitions of the TCP timers.  These timers are counted
 
 /*
  * Definitions of the TCP timers.  These timers are counted
  * backoff on the retransmit timer.
  *
  * The TCPT_PERSIST timer is used to keep window size information
  * backoff on the retransmit timer.
  *
  * The TCPT_PERSIST timer is used to keep window size information
- * flowing even if the window goes shut.  If an output is attempted when there
- * is data ready to transmit, but nothing gets sent because the window
- * is shut, then we start the TCPT_PERSIST timer, and at intervals
- * send a single byte into the peers window to force him to update
+ * flowing even if the window goes shut.  If all previous transmissions
+ * have been acknowledged (so that there are no retransmissions in progress),
+ * and the window is shut, then we start the TCPT_PERSIST timer, and at
+ * intervals send a single byte into the peers window to force him to update
  * our window information.  We do this at most as often as TCPT_PERSMIN
  * time intervals, but no more frequently than the current estimate of
  * round-trip packet time.  The TCPT_PERSIST timer is cleared whenever
  * our window information.  We do this at most as often as TCPT_PERSMIN
  * time intervals, but no more frequently than the current estimate of
  * round-trip packet time.  The TCPT_PERSIST timer is cleared whenever
  */
 #define        TCPTV_MSL       ( 30*PR_SLOWHZ)         /* max seg lifetime */
 #define        TCPTV_SRTTBASE  (  1*PR_SLOWHZ)         /* base roundtrip time */
  */
 #define        TCPTV_MSL       ( 30*PR_SLOWHZ)         /* max seg lifetime */
 #define        TCPTV_SRTTBASE  (  1*PR_SLOWHZ)         /* base roundtrip time */
-#define        TCPTV_KEEP      ( 60*PR_SLOWHZ)         /* keep alive - 1 min */
+#define        TCPTV_KEEP      ( 45*PR_SLOWHZ)         /* keep alive - 45 secs */
 #define        TCPTV_PERSMIN   (  5*PR_SLOWHZ)         /* retransmit persistance */
 
 #define        TCPTV_PERSMIN   (  5*PR_SLOWHZ)         /* retransmit persistance */
 
-#define        TCPTV_MAXIDLE   (  4*TCPTV_KEEP)        /* maximum allowable idle
+#define        TCPTV_MAXIDLE   (  8*TCPTV_KEEP)        /* maximum allowable idle
                                                   time before drop conn */
 
 #define        TCPTV_MIN       (  1*PR_SLOWHZ)         /* minimum allowable value */
                                                   time before drop conn */
 
 #define        TCPTV_MIN       (  1*PR_SLOWHZ)         /* minimum allowable value */
-#define        TCPTV_MAX       (120*PR_SLOWHZ)         /* maximum allowable value */
+#define        TCPTV_MAX       ( 30*PR_SLOWHZ)         /* maximum allowable value */
+
+#define        TCP_LINGERTIME  120                     /* linger at most 2 minutes */
+
+#define        TCP_MAXRXTSHIFT 10                      /* maximum retransmits */
 
 #ifdef TCPTIMERS
 char *tcptimers[] =
 
 #ifdef TCPTIMERS
 char *tcptimers[] =