Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
91cf5a17
Commit
91cf5a17
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 calculation of t_ipi time of scheduled transmission
Problem:
parent
f5c2d636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
net/dccp/ccids/ccid3.c
net/dccp/ccids/ccid3.c
+13
-5
No files found.
net/dccp/ccids/ccid3.c
View file @
91cf5a17
...
@@ -304,11 +304,19 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
...
@@ -304,11 +304,19 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
break
;
break
;
case
TFRC_SSTATE_NO_FBACK
:
case
TFRC_SSTATE_NO_FBACK
:
case
TFRC_SSTATE_FBACK
:
case
TFRC_SSTATE_FBACK
:
delay
=
(
timeval_delta
(
&
now
,
&
hctx
->
ccid3hctx_t_nom
)
-
delay
=
timeval_delta
(
&
hctx
->
ccid3hctx_t_nom
,
&
now
);
hctx
->
ccid3hctx_delta
);
/*
delay
/=
-
1000
;
* Scheduling of packet transmissions [RFC 3448, 4.6]
/* divide by -1000 is to convert to ms and get sign right */
*
rc
=
delay
>
0
?
delay
:
0
;
* if (t_now > t_nom - delta)
* // send the packet now
* else
* // send the packet in (t_nom - t_now) milliseconds.
*/
if
(
delay
<
hctx
->
ccid3hctx_delta
)
rc
=
0
;
else
rc
=
delay
/
1000L
;
break
;
break
;
case
TFRC_SSTATE_TERM
:
case
TFRC_SSTATE_TERM
:
DCCP_BUG
(
"Illegal %s state TERM, sk=%p"
,
dccp_role
(
sk
),
sk
);
DCCP_BUG
(
"Illegal %s state TERM, sk=%p"
,
dccp_role
(
sk
),
sk
);
...
...
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