diff options
author | Roger Dingledine <arma@torproject.org> | 2007-06-09 05:17:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-06-09 05:17:33 +0000 |
commit | eebeda2c7123e69c7c3fb5e31a6293cf01245ba0 (patch) | |
tree | 431acbec958437cb698cf66b2f12d0d23d74c6d6 /src | |
parent | 15270358eb078f87397234ec688a9b2a3c0404fa (diff) | |
download | tor-eebeda2c7123e69c7c3fb5e31a6293cf01245ba0.tar.gz tor-eebeda2c7123e69c7c3fb5e31a6293cf01245ba0.zip |
scrub out some more references to the misnamed 'bridge' concept
svn:r10543
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 12 | ||||
-rw-r--r-- | src/or/directory.c | 14 | ||||
-rw-r--r-- | src/or/or.h | 8 |
3 files changed, 16 insertions, 18 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 2c274c94e0..2127c9e64a 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -357,7 +357,7 @@ connection_ap_expire_beginning(void) if (c->type != CONN_TYPE_AP) continue; conn = TO_EDGE_CONN(c); - /* if it's an internal bridge connection, don't yell its status. */ + /* if it's an internal linked connection, don't yell its status. */ severity = (!conn->_base.addr && !conn->_base.port) ? LOG_INFO : LOG_NOTICE; seconds_idle = now - conn->_base.timestamp_lastread; @@ -1908,13 +1908,13 @@ connection_ap_handshake_send_resolve(edge_connection_t *ap_conn) * DOCDOC start_reading */ edge_connection_t * -connection_ap_make_bridge(char *address, uint16_t port, - const char *digest, int command) +connection_ap_make_link(char *address, uint16_t port, + const char *digest, int command) { edge_connection_t *conn; - log_notice(LD_APP,"Making internal anonymized tunnel to %s:%d ...", - safe_str(address),port); /* XXXX020 Downgrade back to info. */ + log_info(LD_APP,"Making internal anonymized tunnel to %s:%d ...", + safe_str(address),port); conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP, AF_INET)); conn->_base.linked = 1; /* so that we can add it safely below. */ @@ -1952,7 +1952,7 @@ connection_ap_make_bridge(char *address, uint16_t port, return NULL; } - log_info(LD_APP,"... AP bridge created and connected."); + log_info(LD_APP,"... application connection created and linked."); return conn; } diff --git a/src/or/directory.c b/src/or/directory.c index 03acbfe2c3..3290b0f4f8 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -538,20 +538,20 @@ directory_initiate_command(const char *address, uint32_t addr, */ conn->dirconn_direct = 0; linked_conn = - connection_ap_make_bridge(conn->_base.address, conn->_base.port, - digest, - anonymized_connection ? - SOCKS_COMMAND_CONNECT : - SOCKS_COMMAND_CONNECT_DIR); + connection_ap_make_link(conn->_base.address, conn->_base.port, + digest, + anonymized_connection ? + SOCKS_COMMAND_CONNECT : + SOCKS_COMMAND_CONNECT_DIR); if (!linked_conn) { - log_warn(LD_NET,"Making AP bridge to dirserver failed."); + log_warn(LD_NET,"Making tunnel to dirserver failed."); connection_mark_for_close(TO_CONN(conn)); return; } connection_link_connections(TO_CONN(conn), TO_CONN(linked_conn)); if (connection_add(TO_CONN(conn)) < 0) { - log_warn(LD_NET,"Unable to add AP bridge to dirserver."); + log_warn(LD_NET,"Unable to add connection for link to dirserver."); connection_mark_for_close(TO_CONN(conn)); return; } diff --git a/src/or/or.h b/src/or/or.h index 79eb4b7479..7d199fa6b8 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2103,7 +2103,7 @@ static INLINE void or_state_mark_dirty(or_state_t *state, time_t when) struct socks_request_t { /** Which version of SOCKS did the client use? One of "0, 4, 5" -- where * 0 means that no socks handshake ever took place, and this is just a - * stub connection (e.g. see connection_ap_make_bridge()). */ + * stub connection (e.g. see connection_ap_make_link()). */ char socks_version; int command; /**< What is this stream's goal? One from the above list. */ size_t replylen; /**< Length of <b>reply</b>. */ @@ -2439,8 +2439,8 @@ int connection_edge_finished_connecting(edge_connection_t *conn); int connection_ap_handshake_send_begin(edge_connection_t *ap_conn); int connection_ap_handshake_send_resolve(edge_connection_t *ap_conn); -edge_connection_t *connection_ap_make_bridge(char *address, uint16_t port, - const char *digest, int command); +edge_connection_t *connection_ap_make_link(char *address, uint16_t port, + const char *digest, int command); void connection_ap_handshake_socks_reply(edge_connection_t *conn, char *reply, size_t replylen, int endreason); @@ -2679,8 +2679,6 @@ int router_supports_extrainfo(const char *identity_digest, int is_authority); #define UNNAMED_ROUTER_NICKNAME "Unnamed" int connection_dirserv_flushed_some(dir_connection_t *conn); -void connection_dirserv_unlink_from_bridge(dir_connection_t *dir_conn); -void connection_dirserv_stop_blocking_all_on_or_conn(or_connection_t *or_conn); int dirserv_add_own_fingerprint(const char *nickname, crypto_pk_env_t *pk); int dirserv_load_fingerprint_file(void); |