From 9d5831341e0818569a2964e25ee15eab143314e6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 15 Oct 2004 20:52:09 +0000 Subject: Implement user-declared node families. svn:r2534 --- src/or/or.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/or/or.h') diff --git a/src/or/or.h b/src/or/or.h index 0f831536a..c90c275ee 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -859,7 +859,7 @@ typedef struct { /** Local address to bind outbound sockets */ char *OutboundBindAddress; struct config_line_t *RecommendedVersions; - /**< Directory server only: which versions of + /**< Directory server only: which versions of * Tor should we tell users to run? */ char *User; /**< Name of user to run Tor as. */ char *Group; /**< Name of group to run Tor as. */ @@ -904,6 +904,8 @@ typedef struct { struct config_line_t *DirServers; /**< List of configuration lines * for directory servers. */ char *MyFamily; /**< Declared family for this OR. */ + struct config_line_t *NodeFamilies; /**< List of config lines for + * node families */ } or_options_t; /* XXX are these good enough defaults? */ @@ -1420,6 +1422,7 @@ int all_trusted_directory_servers_down(void); struct smartlist_t; void routerlist_add_family(struct smartlist_t *sl, routerinfo_t *router); void add_nickname_list_to_smartlist(struct smartlist_t *sl, const char *list, int warn_if_down); +int router_nickname_is_in_list(routerinfo_t *router, const char *list); routerinfo_t *routerlist_find_my_routerinfo(void); int router_nickname_matches(routerinfo_t *router, const char *nickname); int router_is_unreliable_router(routerinfo_t *router, int need_uptime, int need_bw); -- cgit v1.2.3