diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-07-13 19:06:07 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-07-13 19:06:07 +0200 |
commit | 5492de76dde34cb56c5658b6311772281c08c200 (patch) | |
tree | d79fa81821228e50b67353d8381882213b8468a4 /src/or/circuitbuild.h | |
parent | 9ba2d0e439e53f8307c808fe26e37b53892a604c (diff) | |
download | tor-5492de76dde34cb56c5658b6311772281c08c200.tar.gz tor-5492de76dde34cb56c5658b6311772281c08c200.zip |
Put some last missing pieces together.
* Add some utility transport functions in circuitbuild.[ch] so that we
can use them from pt.c.
* Make the accounting system consider traffic coming from proxies.
* Make sure that we only fetch bridge descriptors when all the
transports are configured.
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r-- | src/or/circuitbuild.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h index 74715b7d06..92449b45c2 100644 --- a/src/or/circuitbuild.h +++ b/src/or/circuitbuild.h @@ -142,6 +142,11 @@ int circuit_build_times_get_bw_scale(networkstatus_t *ns); void clear_transport_list(void); int transport_add_from_config(const tor_addr_t *addr, uint16_t port, const char *name, int socks_ver); +int transport_add(transport_t *t); +void transport_free(transport_t *transport); +transport_t *transport_create(const tor_addr_t *addr, uint16_t port, + const char *name, int socks_ver); + int find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port, const transport_t **transport); void validate_pluggable_transports_config(void); |