From 75c19716a80a96a7550dd723aca73c245987b87f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Apr 2004 19:46:27 +0000 Subject: Put ourself in router list; act accordingly. svn:r1521 --- src/or/or.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/or.h') diff --git a/src/or/or.h b/src/or/or.h index aa5f308bd..0a0b08591 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -469,8 +469,7 @@ typedef struct { #define MAX_ROUTERS_IN_DIR 1024 typedef struct { - routerinfo_t **routers; - int n_routers; + smartlist_t *routers; char *software_versions; time_t published_on; } routerlist_t; @@ -980,6 +979,7 @@ void router_post_to_dirservers(uint8_t purpose, const char *payload, int payload int router_compare_to_my_exit_policy(connection_t *conn); routerinfo_t *router_get_my_routerinfo(void); const char *router_get_my_descriptor(void); +int router_is_me(routerinfo_t *router); int router_rebuild_descriptor(void); int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, crypto_pk_env_t *ident_key); -- cgit v1.2.3