diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 04:53:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 04:53:11 +0000 |
commit | 98a376fab1725c81df84a1782b3b625958e4c6ba (patch) | |
tree | 4961240d483831348828a71151f67e75594c8836 /src/or/or.h | |
parent | df22dcb602ff45f32444ba1f882d092996345771 (diff) | |
download | tor-98a376fab1725c81df84a1782b3b625958e4c6ba.tar.gz tor-98a376fab1725c81df84a1782b3b625958e4c6ba.zip |
More propagating of things that need to be was_router_added_t now.
svn:r17721
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/or/or.h b/src/or/or.h index 9093127ee3..06d1b89355 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4375,10 +4375,11 @@ void router_set_status(const char *digest, int up); typedef enum was_router_added_t { ROUTER_ADDED_SUCCESSFULLY = 0, ROUTER_ADDED_NOTIFY_GENERATOR = 1, - ROUTER_WAS_NOT_NEW = -1, - ROUTER_NOT_IN_CONSENSUS = -2, - ROUTER_NOT_IN_CONSENSUS_OR_NETWORKSTATUS = -3, - ROUTER_AUTHDIR_REJECTS = -4, + ROUTER_BAD_EI = -1, + ROUTER_WAS_NOT_NEW = -2, + ROUTER_NOT_IN_CONSENSUS = -3, + ROUTER_NOT_IN_CONSENSUS_OR_NETWORKSTATUS = -4, + ROUTER_AUTHDIR_REJECTS = -5, } was_router_added_t; static int WRA_WAS_ADDED(was_router_added_t s); @@ -4405,7 +4406,8 @@ was_router_added_t router_add_to_routerlist(routerinfo_t *router, const char **msg, int from_cache, int from_fetch); -int router_add_extrainfo_to_routerlist(extrainfo_t *ei, const char **msg, +was_router_added_t router_add_extrainfo_to_routerlist( + extrainfo_t *ei, const char **msg, int from_cache, int from_fetch); void routerlist_remove_old_routers(void); int router_load_single_router(const char *s, uint8_t purpose, int cache, |