summaryrefslogtreecommitdiff
path: root/src/or/nodelist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-13 12:57:46 -0400
committerNick Mathewson <nickm@torproject.org>2012-09-14 10:20:00 -0400
commitba21ebc6d8fe57cd09189d5505206a56b1c3abdd (patch)
treeaa53fa11e7d7268de231abed5e7090dd030b6d84 /src/or/nodelist.h
parentd995dc8bac2bd90078fa60133728d625941246bb (diff)
downloadtor-ba21ebc6d8fe57cd09189d5505206a56b1c3abdd.tar.gz
tor-ba21ebc6d8fe57cd09189d5505206a56b1c3abdd.zip
Move many of the node_ functions from routerlist to nodelist
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r--src/or/nodelist.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index fb65fa5483..01943ed30f 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -61,11 +61,17 @@ smartlist_t *nodelist_get_list(void);
void node_get_addr(const node_t *node, tor_addr_t *addr_out);
#define node_get_addr_ipv4h(n) node_get_prim_addr_ipv4h((n))
-/* XXXX These need to move out of routerlist.c */
void nodelist_refresh_countries(void);
void node_set_country(node_t *node);
void nodelist_add_node_and_family(smartlist_t *nodes, const node_t *node);
int nodes_in_same_family(const node_t *node1, const node_t *node2);
+const node_t *router_find_exact_exit_enclave(const char *address,
+ uint16_t port);
+int node_is_unreliable(const node_t *router, int need_uptime,
+ int need_capacity, int need_guard);
+int router_exit_policy_all_nodes_reject(const tor_addr_t *addr, uint16_t port,
+ int need_uptime);
+
#endif