aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/routerlist.h
diff options
context:
space:
mode:
authorteor <teor@riseup.net>2020-05-13 13:15:31 +1000
committerteor <teor@riseup.net>2020-05-18 21:53:52 +1000
commit38c72400b7887c3bf5e9ff4082bd8da1e07efd52 (patch)
treee9911b079e21d7ee62fe26153c1ec38a36ce0f56 /src/feature/nodelist/routerlist.h
parenta3244c03fb586268da72fbe90bc8f4def85aaff7 (diff)
downloadtor-38c72400b7887c3bf5e9ff4082bd8da1e07efd52.tar.gz
tor-38c72400b7887c3bf5e9ff4082bd8da1e07efd52.zip
routerlist: Split the node checks into their own function
Split the node choosing checks into their own function, so we can call it independently of iterating through the nodelist. Part of 34200.
Diffstat (limited to 'src/feature/nodelist/routerlist.h')
-rw-r--r--src/feature/nodelist/routerlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/nodelist/routerlist.h b/src/feature/nodelist/routerlist.h
index 7d0788bacb..98472b2771 100644
--- a/src/feature/nodelist/routerlist.h
+++ b/src/feature/nodelist/routerlist.h
@@ -58,6 +58,7 @@ int router_dir_conn_should_skip_reachable_address_check(
int try_ip_pref);
void router_reset_status_download_failures(void);
int routers_have_same_or_addrs(const routerinfo_t *r1, const routerinfo_t *r2);
+bool router_can_choose_node(const node_t *node, int flags);
void router_add_running_nodes_to_smartlist(smartlist_t *sl, int flags);
const routerinfo_t *routerlist_find_my_routerinfo(void);