summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-08 10:11:53 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-08 10:11:53 +0000
commit54f5ab39b331a39081d568d4d4fc5d5e56ce4565 (patch)
tree5a5f7b0f585c51d808166dcd1e18fbf071b8be67 /src/or/or.h
parent1d3bb103a4f10b22d8d779feabf6ebab784fd658 (diff)
downloadtor-54f5ab39b331a39081d568d4d4fc5d5e56ce4565.tar.gz
tor-54f5ab39b331a39081d568d4d4fc5d5e56ce4565.zip
record the router purpose at each step of the circuit path.
i have the feeling this will come in handy. svn:r10139
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 4d27b43339..8836060c20 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1118,11 +1118,13 @@ typedef struct {
unsigned int is_bad_exit:1; /**< Do we think this exit is censored, borked,
* or otherwise nasty? */
-/** Tor can use this desc for circuit-building. */
+/** Tor can use this router for general positions in circuits. */
#define ROUTER_PURPOSE_GENERAL 0
-/** Tor should avoid using this desc for circuit-building. */
+/** Tor should avoid using this router for circuit-building. */
#define ROUTER_PURPOSE_CONTROLLER 1
- uint8_t purpose; /** Should Tor use this desc for circuit-building? */
+/** Tor should use this router only for bridge positions in circuits. */
+#define ROUTER_PURPOSE_BRIDGE 1
+ uint8_t purpose; /** What positions in a circuit is this router good for? */
/* The below items are used only by authdirservers for
* reachability testing. */
@@ -1297,6 +1299,7 @@ typedef struct extend_info_t {
char identity_digest[DIGEST_LEN]; /**< Hash of this router's identity key. */
uint32_t addr; /**< IP address in host order. */
uint16_t port; /**< OR port. */
+ uint8_t router_purpose; /**< General, controller, or bridge. */
crypto_pk_env_t *onion_key; /**< Current onionskin key. */
} extend_info_t;