Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
a87583d1
Commit
a87583d1
authored
11 years ago
by
Tomasz Grabiec
Browse files
Options
Downloads
Patches
Plain Diff
net: remove dead code
parent
d7fa401b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bsd/sys/netinet/tcp_timer.cc
+0
-21
0 additions, 21 deletions
bsd/sys/netinet/tcp_timer.cc
with
0 additions
and
21 deletions
bsd/sys/netinet/tcp_timer.cc
+
0
−
21
View file @
a87583d1
...
@@ -684,24 +684,3 @@ tcp_timer_active(struct tcpcb *tp, int timer_type)
...
@@ -684,24 +684,3 @@ tcp_timer_active(struct tcpcb *tp, int timer_type)
}
}
return
callout_active
(
t_callout
);
return
callout_active
(
t_callout
);
}
}
#define ticks_to_msecs(t) (1000*(t) / hz)
void
tcp_timer_to_xtimer
(
struct
tcpcb
*
tp
,
struct
tcp_timer
*
timer
,
struct
xtcp_timer
*
xtimer
)
{
bzero
(
xtimer
,
sizeof
(
struct
xtcp_timer
));
if
(
timer
==
NULL
)
return
;
if
(
callout_active
(
&
timer
->
tt_delack
))
xtimer
->
tt_delack
=
ticks_to_msecs
(
timer
->
tt_delack
.
c_time
-
bsd_ticks
);
if
(
callout_active
(
&
timer
->
tt_rexmt
))
xtimer
->
tt_rexmt
=
ticks_to_msecs
(
timer
->
tt_rexmt
.
c_time
-
bsd_ticks
);
if
(
callout_active
(
&
timer
->
tt_persist
))
xtimer
->
tt_persist
=
ticks_to_msecs
(
timer
->
tt_persist
.
c_time
-
bsd_ticks
);
if
(
callout_active
(
&
timer
->
tt_keep
))
xtimer
->
tt_keep
=
ticks_to_msecs
(
timer
->
tt_keep
.
c_time
-
bsd_ticks
);
if
(
callout_active
(
&
timer
->
tt_2msl
))
xtimer
->
tt_2msl
=
ticks_to_msecs
(
timer
->
tt_2msl
.
c_time
-
bsd_ticks
);
xtimer
->
t_rcvtime
=
ticks_to_msecs
(
bsd_ticks
-
tp
->
t_rcvtime
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment