diff options
author | Neel Chauhan <neel@neelc.org> | 2018-10-17 21:43:59 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2018-11-05 08:26:02 -0500 |
commit | 45b28167d7e2b1d5afb26db6f76ca2329a9bbc04 (patch) | |
tree | fc4b4e09ec23fc3245ee74fe53164cbf186eee30 /src/core/or/circuitbuild.h | |
parent | fd2e0ac1c39088a315ccce648e52536a43ba3c27 (diff) | |
download | tor-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.h | 3 |
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); |