diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-28 23:57:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-28 23:57:44 +0000 |
commit | 9988112c87bc5e4ad39880ffd2aa898e0e62e82f (patch) | |
tree | 972e8537767d5351cfcab636756a55293fd5ec86 /src/or/or.h | |
parent | bc25e87754814e1bdfa01336f0375f208e9a77fc (diff) | |
download | tor-9988112c87bc5e4ad39880ffd2aa898e0e62e82f.tar.gz tor-9988112c87bc5e4ad39880ffd2aa898e0e62e82f.zip |
r8973@Kushana: nickm | 2006-09-28 16:53:19 -0400
Refactor entry guard status logic a lot; allow more factors [like not
having a Guard flag or being listed in ExcludeNodes] to render a guard
"unlisted" (now called "unusable"); track guard down status (now
called "unreachable") separately from is_running.
svn:r8519
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 4db05824f4..6c54a89a96 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1707,8 +1707,8 @@ void extend_info_free(extend_info_t *info); routerinfo_t *build_state_get_exit_router(cpath_build_state_t *state); const char *build_state_get_exit_nickname(cpath_build_state_t *state); -void entry_guards_set_status_from_directory(void); -int entry_guard_set_status(const char *digest, int succeeded); +void entry_guards_compute_status(void); +int entry_guard_register_connect_status(const char *digest, int succeeded); void entry_nodes_should_be_added(void); void entry_guards_prepend_from_config(void); void entry_guards_update_state(or_state_t *state); @@ -2534,6 +2534,7 @@ void routerlist_add_family(smartlist_t *sl, routerinfo_t *router); void add_nickname_list_to_smartlist(smartlist_t *sl, const char *list, int must_be_running, int warn_if_down, int warn_if_unnamed); +int router_nickname_is_in_list(routerinfo_t *router, const char *list); routerinfo_t *routerlist_find_my_routerinfo(void); routerinfo_t *router_find_exact_exit_enclave(const char *address, uint16_t port); |