Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
debian
tor
Commits
e8c366e9
Commit
e8c366e9
authored
10 years ago
by
George Kadianakis
Browse files
Options
Downloads
Patches
Plain Diff
Create skeleton for populate_live_entry_guards().
Now we are ready to move code from choose_random_entry_impl() to it.
parent
f75c6ce9
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
src/or/entrynodes.c
+10
-0
10 additions, 0 deletions
src/or/entrynodes.c
with
10 additions
and
0 deletions
src/or/entrynodes.c
+
10
−
0
View file @
e8c366e9
...
...
@@ -995,6 +995,16 @@ choose_random_dirguard(dirinfo_type_t type)
return
choose_random_entry_impl
(
NULL
,
1
,
type
,
NULL
);
}
static
int
populate_live_entry_guards
(
const
smartlist_t
*
live_entry_guards
,
const
node_t
*
chosen_exit
,
dirinfo_type_t
dirinfo_type
,
int
need_uptime
,
int
need_capacity
,
int
need_descriptor
)
{
}
/** Helper for choose_random{entry,dirguard}. */
static
const
node_t
*
choose_random_entry_impl
(
cpath_build_state_t
*
state
,
int
for_directory
,
...
...
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