summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-08-15 20:14:44 +0000
committerNick Mathewson <nickm@torproject.org>2004-08-15 20:14:44 +0000
commit416653271a7505e7a219240eaeeb379d4d22afac (patch)
treece30e0fbd64468c8dcdc0496710e1b466457f83f /src/or/or.h
parentebf2d275bf37935ce5efff4f205d11eeb400d8c2 (diff)
downloadtor-416653271a7505e7a219240eaeeb379d4d22afac.tar.gz
tor-416653271a7505e7a219240eaeeb379d4d22afac.zip
Implement strict{entry|exit}nodes config options
svn:r2236
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 4a05a04747..a382e9b32e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -824,6 +824,10 @@ typedef struct {
* as exits. */
char *EntryNodes; /**< Comma-separated list of nicknames of ORs to consider
* as entry points. */
+ int StrictExitNodes; /**< Boolean: When none of our ExitNodes are up, do we
+ * stop building circuits? */
+ int StrictEntryNodes; /**< Boolean: When none of our EntryNodes are up, do we
+ * stop building circuits? */
char *ExcludeNodes; /**< Comma-separated list of nicknames of ORs not to
* use in circuits. */
@@ -1381,7 +1385,8 @@ void router_add_running_routers_to_smartlist(struct smartlist_t *sl);
int router_nickname_matches(routerinfo_t *router, const char *nickname);
routerinfo_t *router_choose_random_node(char *preferred, char *excluded,
struct smartlist_t *excludedsmartlist,
- int preferuptime, int preferbandwidth);
+ int preferuptime, int preferbandwidth,
+ int strict);
routerinfo_t *router_get_by_addr_port(uint32_t addr, uint16_t port);
routerinfo_t *router_get_by_nickname(const char *nickname);
routerinfo_t *router_get_by_hexdigest(const char *hexdigest);