diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-06 16:03:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-19 01:58:44 -0400 |
commit | ea0a9b16b9459c9b45ac320e87392dbcaa799b1d (patch) | |
tree | bafdd6c2a74f621c1e816bcadb8b472de5a61910 /src/or/connection_edge.h | |
parent | d2205ca458e25115287462292087f0f5ed797c02 (diff) | |
download | tor-ea0a9b16b9459c9b45ac320e87392dbcaa799b1d.tar.gz tor-ea0a9b16b9459c9b45ac320e87392dbcaa799b1d.zip |
(Unused) backend logic for stream isolation
This patch adds fields to track how streams should be isolated, and
ensures that those fields are set correctly. It also adds fields to
track what streams can go on a circuit, and adds functions to see
whether a streams can go on a circuit and update the circuit
accordingly. Those functions aren't yet called.
Diffstat (limited to 'src/or/connection_edge.h')
-rw-r--r-- | src/or/connection_edge.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h index 1cb1281dbd..59865f414b 100644 --- a/src/or/connection_edge.h +++ b/src/or/connection_edge.h @@ -103,5 +103,13 @@ hostname_type_t parse_extended_hostname(char *address, int allowdotexit); int get_pf_socket(void); #endif +int connection_edge_streams_are_compatible(const edge_connection_t *a, + const edge_connection_t *b); +int connection_edge_compatible_with_circuit(const edge_connection_t *conn, + const origin_circuit_t *circ); +int connection_edge_update_circuit_isolation(const edge_connection_t *conn, + origin_circuit_t *circ, + int dry_run); + #endif |