aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitbuild.h
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-10-17 21:43:59 -0400
committerNeel Chauhan <neel@neelc.org>2018-11-05 08:26:02 -0500
commit45b28167d7e2b1d5afb26db6f76ca2329a9bbc04 (patch)
treefc4b4e09ec23fc3245ee74fe53164cbf186eee30 /src/core/or/circuitbuild.h
parentfd2e0ac1c39088a315ccce648e52536a43ba3c27 (diff)
downloadtor-45b28167d7e2b1d5afb26db6f76ca2329a9bbc04.tar.gz
tor-45b28167d7e2b1d5afb26db6f76ca2329a9bbc04.zip
In count_acceptable_nodes(), count direct and indirect nodes with node_has_preferred_descriptor()
Diffstat (limited to 'src/core/or/circuitbuild.h')
-rw-r--r--src/core/or/circuitbuild.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/or/circuitbuild.h b/src/core/or/circuitbuild.h
index cee71b297b..93f903f060 100644
--- a/src/core/or/circuitbuild.h
+++ b/src/core/or/circuitbuild.h
@@ -84,7 +84,8 @@ void circuit_upgrade_circuits_from_guard_wait(void);
STATIC circid_t get_unique_circ_id_by_chan(channel_t *chan);
STATIC int new_route_len(uint8_t purpose, extend_info_t *exit_ei,
smartlist_t *nodes);
-MOCK_DECL(STATIC int, count_acceptable_nodes, (smartlist_t *nodes));
+MOCK_DECL(STATIC int, count_acceptable_nodes, (smartlist_t *nodes,
+ int direct));
STATIC int onion_extend_cpath(origin_circuit_t *circ);