aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-15 20:52:09 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-15 20:52:09 +0000
commit9d5831341e0818569a2964e25ee15eab143314e6 (patch)
tree0455a9e25d044b7a2f48d97c1e227b8260182553 /src/or/or.h
parentf882bd92edde8f864eee87c178838cb6e8589555 (diff)
downloadtor-9d5831341e0818569a2964e25ee15eab143314e6.tar
tor-9d5831341e0818569a2964e25ee15eab143314e6.tar.gz
Implement user-declared node families.
svn:r2534
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 4 insertions, 1 deletions
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);