aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-07 19:46:27 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-07 19:46:27 +0000
commit75c19716a80a96a7550dd723aca73c245987b87f (patch)
tree1ec9949a29f0fb47075037eff45d428dc5b9d062 /src/or/or.h
parent4a9587a486e35ea71aabe8391b05ceee22f2cd91 (diff)
downloadtor-75c19716a80a96a7550dd723aca73c245987b87f.tar
tor-75c19716a80a96a7550dd723aca73c245987b87f.tar.gz
Put ourself in router list; act accordingly.
svn:r1521
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 2 insertions, 2 deletions
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);