diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 00:48:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 00:48:51 +0000 |
commit | b90b2bb848cbbfbc7babda6498e014b687704c29 (patch) | |
tree | 7d94fe9a64882b242064d40e990d4d82a5874497 /src/or/or.h | |
parent | 26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a (diff) | |
download | tor-b90b2bb848cbbfbc7babda6498e014b687704c29.tar.gz tor-b90b2bb848cbbfbc7babda6498e014b687704c29.zip |
Add and document router-status line using new unified liveness/verifiedness format; continue to generate running-routers; continue to parse running-routers when no router-status line is found
svn:r2592
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 4db838ac98..780cff32fc 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -621,6 +621,7 @@ typedef struct running_routers_t { time_t published_on; /**< When was the list marked as published? */ /** Which ORs are on the list? Entries may be prefixed with ! and $. */ smartlist_t *running_routers; + int is_running_routers_format; /**< Are we using the old entry format? */ } running_routers_t; /** Holds accounting information for a single step in the layered encryption @@ -1469,9 +1470,14 @@ int router_exit_policy_rejects_all(routerinfo_t *router); void running_routers_free(running_routers_t *rr); void routerlist_update_from_runningrouters(routerlist_t *list, running_routers_t *rr); +int routers_update_status_from_entry(smartlist_t *routers, + time_t list_time, + const char *s, + int rr_format); int router_update_status_from_smartlist(routerinfo_t *r, time_t list_time, - smartlist_t *running_list); + smartlist_t *running_list, + int rr_format); void add_trusted_dir_server(const char *addr, uint16_t port,const char *digest); void clear_trusted_dir_servers(void); @@ -1493,6 +1499,7 @@ int router_get_runningrouters_hash(const char *s, char *digest); int router_parse_list_from_string(const char **s, routerlist_t **dest, smartlist_t *good_nickname_list, + int rr_format, time_t published); int router_parse_routerlist_from_directory(const char *s, routerlist_t **dest, |