tor  0.4.2.0-alpha-dev
Data Fields
cpath_build_state_t Struct Reference

#include <cpath_build_state_st.h>

Data Fields

int desired_path_len
 
extend_info_tchosen_exit
 
unsigned int need_uptime: 1
 
unsigned int need_capacity: 1
 
unsigned int is_internal: 1
 
unsigned int onehop_tunnel: 1
 
crypt_path_tpending_final_cpath
 
crypt_path_reference_tservice_pending_final_cpath_ref
 
int failure_count
 
time_t expiry_time
 

Detailed Description

Information used to build a circuit.

Definition at line 11 of file cpath_build_state_st.h.

Field Documentation

◆ chosen_exit

extend_info_t* cpath_build_state_t::chosen_exit

◆ desired_path_len

int cpath_build_state_t::desired_path_len

Intended length of the final circuit.

Definition at line 13 of file cpath_build_state_st.h.

Referenced by circuit_build_failed(), circuit_list_path_impl(), circuit_timeout_want_to_count_circ(), and onion_extend_cpath().

◆ expiry_time

time_t cpath_build_state_t::expiry_time

At what time should we give up on this task?

Definition at line 34 of file cpath_build_state_st.h.

◆ failure_count

int cpath_build_state_t::failure_count

How many times has building a circuit for this task failed?

Definition at line 32 of file cpath_build_state_st.h.

◆ is_internal

unsigned int cpath_build_state_t::is_internal

Whether the last hop was picked with exiting in mind.

Definition at line 21 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller(), circuit_is_acceptable(), circuit_list_path_impl(), and circuit_stream_is_being_handled().

◆ need_capacity

unsigned int cpath_build_state_t::need_capacity

Whether every node in the circ must have adequate capacity.

Definition at line 19 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller().

◆ need_uptime

unsigned int cpath_build_state_t::need_uptime

Whether every node in the circ must have adequate uptime.

Definition at line 17 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller(), circuit_is_acceptable(), circuit_list_path_impl(), and circuit_stream_is_being_handled().

◆ onehop_tunnel

unsigned int cpath_build_state_t::onehop_tunnel

Did we pick this as a one-hop tunnel (not safe for other streams)? These are for encrypted dir conns that exit to this router, not for arbitrary exits from the circuit.

Definition at line 25 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller(), circuit_is_acceptable(), circuit_stream_is_being_handled(), onion_pick_cpath_exit(), and warn_if_last_router_excluded().

◆ pending_final_cpath

crypt_path_t* cpath_build_state_t::pending_final_cpath

The crypt_path_t to append after rendezvous: used for rendezvous.

Definition at line 27 of file cpath_build_state_st.h.

◆ service_pending_final_cpath_ref

crypt_path_reference_t* cpath_build_state_t::service_pending_final_cpath_ref

A ref-counted reference to the crypt_path_t to append after rendezvous; used on the service side.

Definition at line 30 of file cpath_build_state_st.h.

Referenced by rend_service_relaunch_rendezvous().


The documentation for this struct was generated from the following file: