Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
90feeb95
Commit
90feeb95
authored
Nov 27, 2006
by
Gerrit Renker
Committed by
David S. Miller
Dec 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DCCP] ccid3: Fix bug in calculation of first t_nom and first t_ipi
Problem:
parent
6472c051
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
net/dccp/ccids/ccid3.c
net/dccp/ccids/ccid3.c
+6
-5
net/dccp/ccids/ccid3.h
net/dccp/ccids/ccid3.h
+0
-2
No files found.
net/dccp/ccids/ccid3.c
View file @
90feeb95
...
...
@@ -298,13 +298,14 @@ 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_IPI
;
/* Set nominal send time for initial packet */
/* First timeout, according to [RFC 3448, 4.2], is 1 second */
hctx
->
ccid3hctx_t_ipi
=
USEC_PER_SEC
;
/* Initial delta: minimum of 0.5 sec and t_gran/2 */
hctx
->
ccid3hctx_delta
=
TFRC_OPSYS_HALF_TIME_GRAN
;
/* Set t_0 for initial packet */
hctx
->
ccid3hctx_t_nom
=
now
;
timeval_add_usecs
(
&
hctx
->
ccid3hctx_t_nom
,
hctx
->
ccid3hctx_t_ipi
);
ccid3_calc_new_delta
(
hctx
);
rc
=
0
;
break
;
case
TFRC_SSTATE_NO_FBACK
:
...
...
net/dccp/ccids/ccid3.h
View file @
90feeb95
...
...
@@ -49,8 +49,6 @@
/* 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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment