[CCID3] Initialize more fields in ccid3_hc_rx_init

The initialization of ccid3hcrx_rtt to 5ms is just a bandaid, I'll continue
auditing the CCID3 HC rx codebase to fix this properly, probably I'll add a
feedback timer as suggested in the CCID3 draft.
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent b3a3077d
...@@ -1100,11 +1100,9 @@ static int ccid3_hc_rx_init(struct sock *sk) ...@@ -1100,11 +1100,9 @@ static int ccid3_hc_rx_init(struct sock *sk)
hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA; hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA;
INIT_LIST_HEAD(&hcrx->ccid3hcrx_hist); INIT_LIST_HEAD(&hcrx->ccid3hcrx_hist);
INIT_LIST_HEAD(&hcrx->ccid3hcrx_li_hist); INIT_LIST_HEAD(&hcrx->ccid3hcrx_li_hist);
/* do_gettimeofday(&hcrx->ccid3hcrx_tstamp_last_ack);
* XXX this seems to be paranoid, need to think more about this, for hcrx->ccid3hcrx_tstamp_last_feedback = hcrx->ccid3hcrx_tstamp_last_ack;
* now start with something different than zero. -acme hcrx->ccid3hcrx_rtt = 5000; /* XXX 5ms for now... */
*/
hcrx->ccid3hcrx_rtt = USEC_PER_SEC / 5;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment