diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-05-22 14:10:38 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-05-22 15:57:33 +0300 |
commit | 52498b8183a2ab1da525180ee76f704d8257ebc6 (patch) | |
tree | 8843e6d95581e037d256e515e111d68c74b0e8dc /src/or/directory.h | |
parent | bbeba2412e58501da4097409258d329ca97edb2e (diff) | |
download | tor-52498b8183a2ab1da525180ee76f704d8257ebc6.tar.gz tor-52498b8183a2ab1da525180ee76f704d8257ebc6.zip |
Set guard state on bridge descriptor fetches.
We used to not set the guard state in launch_direct_bridge_descriptor_fetch().
So when a bridge descriptor fetch failed, the guard subsystem would never
learn about the fail (and hence the guard's reachability state would not
be updated).
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index a015c7045d..9561ad73fa 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -47,6 +47,7 @@ int directory_must_use_begindir(const or_options_t *options); * directory we're going to ask for it, how we're going to contact that * directory, and (in some cases) what to do with it when we're done. */ +typedef struct circuit_guard_state_t circuit_guard_state_t; typedef struct directory_request_t directory_request_t; directory_request_t *directory_request_new(uint8_t dir_purpose); void directory_request_free(directory_request_t *req); @@ -56,6 +57,8 @@ void directory_request_set_dir_addr_port(directory_request_t *req, const tor_addr_port_t *p); void directory_request_set_directory_id_digest(directory_request_t *req, const char *digest); +void directory_request_set_guard_state(directory_request_t *req, + circuit_guard_state_t *state); void directory_request_set_router_purpose(directory_request_t *req, uint8_t router_purpose); void directory_request_set_indirection(directory_request_t *req, |