12 #ifndef TOR_CIRCUITUSE_H
13 #define TOR_CIRCUITUSE_H
39 #define CIRCLAUNCH_ONEHOP_TUNNEL (1<<0)
41 #define CIRCLAUNCH_NEED_UPTIME (1<<1)
43 #define CIRCLAUNCH_NEED_CAPACITY (1<<2)
46 #define CIRCLAUNCH_IS_INTERNAL (1<<3)
49 #define CIRCLAUNCH_IS_V3_RP (1<<4)
54 #define CIRCLAUNCH_IS_IPV6_SELFTEST (1<<5)
90 STATIC int needs_exit_circuits(time_t now,
91 int *port_needs_uptime,
92 int *port_needs_capacity);
93 STATIC int needs_hs_server_circuits(time_t now,
94 int num_uptime_internal);
96 STATIC int needs_hs_client_circuits(time_t now,
100 int num_uptime_internal);
102 STATIC int needs_circuits_for_build(
int num);
void circuit_build_failed(origin_circuit_t *circ)
void circuit_sent_valid_data(origin_circuit_t *circ, uint16_t relay_body_len)
void circuit_expire_old_circuits_serverside(time_t now)
bool circuit_is_hs_v3(const circuit_t *circ)
void circuit_detach_stream(circuit_t *circ, edge_connection_t *conn)
bool circuit_purpose_is_hs_service(const uint8_t purpose)
origin_circuit_t * circuit_launch(uint8_t purpose, int flags)
void circuit_read_valid_data(origin_circuit_t *circ, uint16_t relay_body_len)
void circuit_log_ancient_one_hop_circuits(int age)
void circuit_change_purpose(circuit_t *circ, uint8_t new_purpose)
void circuit_expire_waiting_for_better_guard(void)
void circuit_expire_old_circs_as_needed(time_t now)
origin_circuit_t * circuit_launch_by_extend_info(uint8_t purpose, extend_info_t *info, int flags)
void reset_bandwidth_test(void)
int hostname_in_track_host_exits(const or_options_t *options, const char *address)
void circuit_has_opened(origin_circuit_t *circ)
void circuit_expire_building(void)
void circuit_build_needed_circs(time_t now)
int circuit_purpose_is_hidden_service(uint8_t)
bool circuit_purpose_is_hs_vanguards(const uint8_t purpose)
int connection_ap_handshake_attach_circuit(entry_connection_t *conn)
void circuit_reset_failure_count(int timeout)
bool circuit_purpose_is_hs_client(const uint8_t purpose)
int connection_ap_handshake_attach_chosen_circuit(entry_connection_t *conn, origin_circuit_t *circ, crypt_path_t *cpath)
int circuit_stream_is_being_handled(entry_connection_t *conn, uint16_t port, int min)
void circuit_remove_handled_ports(smartlist_t *needed_ports)
int circuit_enough_testing_circs(void)
int circuit_should_use_vanguards(uint8_t)
void mark_circuit_unusable_for_new_conns(origin_circuit_t *circ)
void circuit_try_attaching_streams(origin_circuit_t *circ)