diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-08 15:15:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-19 02:02:11 -0400 |
commit | 424063e3b2b882d72943bda41279bd29a711ec55 (patch) | |
tree | d40939c490c7069e46080f78b5eb158d9edba589 /src/or/or.h | |
parent | aef30547dc4aa77fc79517a6dcad7712b59af371 (diff) | |
download | tor-424063e3b2b882d72943bda41279bd29a711ec55.tar.gz tor-424063e3b2b882d72943bda41279bd29a711ec55.zip |
Implement destaddr-based isolation
The new candidate rule, which arma suggested and I like, is that
the original address as received from the client connection or as
rewritten by the controller is the address that counts.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 09907c3a15..ace92ce1a7 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1214,10 +1214,12 @@ typedef struct edge_connection_t { int session_group; /** AP only: The newnym epoch in which we created this connection. */ unsigned nym_epoch; + /** AP only: The original requested address before we rewrote it. */ + char *original_dest_address; /* Other fields to isolate on already exist. The ClientAddr is addr. The ClientProtocol is a combination of type and socks_request-> socks_version. SocksAuth will be added to socks_request by ticket - #1666. DestAddr and DestPort are in socks_request->address. */ + #1666. DestAddr is in socks_request->address. */ /** Number of times we've reassigned this application connection to * a new circuit. We keep track because the timeout is longer if we've |