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;
* 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. */
return NULL;
}
- log_info(LD_APP,"... AP bridge created and connected.");
+ log_info(LD_APP,"... application connection created and linked.");
return conn;
}
*/
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;
}
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>. */
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);
#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);