[CCID3] Initialize ccid3hctx_t_ipi to 250ms
authorArnaldo Carvalho de Melo <acme@mandriva.com>
Fri, 9 Sep 2005 22:58:18 +0000 (19:58 -0300)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Fri, 9 Sep 2005 22:58:18 +0000 (19:58 -0300)
To match more closely what is described in RFC 3448.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: Ian McDonald <iam4@cs.waikato.ac.nz>
net/dccp/ccids/ccid3.c
net/dccp/ccids/ccid3.h

index ea30012dd19545cb925a94456bedb6e88addb7b2..4467a74e6f40a8671db35e59777d9e382ca0a5bb 100644 (file)
@@ -328,7 +328,7 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
                hctx->ccid3hctx_last_win_count   = 0;
                hctx->ccid3hctx_t_last_win_count = now;
                ccid3_hc_tx_set_state(sk, TFRC_SSTATE_NO_FBACK);
-               hctx->ccid3hctx_t_ipi = TFRC_INITIAL_TIMEOUT;
+               hctx->ccid3hctx_t_ipi = TFRC_INITIAL_IPI;
 
                /* Set nominal send time for initial packet */
                hctx->ccid3hctx_t_nom = now;
index d16f00d784f39375a771550280281ba0d53d4c19..eb248778eea371fc34d3f053b366c9de98496b8b 100644 (file)
@@ -48,6 +48,8 @@
 /* Two seconds as per CCID3 spec */
 #define TFRC_INITIAL_TIMEOUT      (2 * USEC_PER_SEC)
 
+#define TFRC_INITIAL_IPI          (USEC_PER_SEC / 4)
+
 /* In usecs - half the scheduling granularity as per RFC3448 4.6 */
 #define TFRC_OPSYS_HALF_TIME_GRAN  (USEC_PER_SEC / (2 * HZ))