Tor 0.4.9.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 is_ipv6_selftest: 1
 
unsigned int onehop_tunnel: 1
 
unsigned int need_conflux: 1
 
int failure_count
 
time_t expiry_time
 

Detailed Description

Information used to build a circuit.

Definition at line 16 of file cpath_build_state_st.h.

Field Documentation

◆ chosen_exit

extend_info_t* chosen_exit

◆ desired_path_len

int desired_path_len

Intended length of the final circuit.

Definition at line 18 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 expiry_time

At what time should we give up on this task?

Definition at line 38 of file cpath_build_state_st.h.

Referenced by can_relaunch_service_rendezvous_point().

◆ failure_count

int failure_count

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

Definition at line 36 of file cpath_build_state_st.h.

Referenced by can_relaunch_service_rendezvous_point().

◆ is_internal

unsigned int is_internal

Whether the last hop was picked with exiting in mind.

Definition at line 26 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller(), and circuit_list_path_impl().

◆ is_ipv6_selftest

unsigned int is_ipv6_selftest

Is this an IPv6 ORPort self-testing circuit?

Definition at line 28 of file cpath_build_state_st.h.

◆ need_capacity

unsigned int need_capacity

Whether every node in the circ must have adequate capacity.

Definition at line 24 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller().

◆ need_conflux

unsigned int need_conflux

Indicating the exit needs to support Conflux.

Definition at line 34 of file cpath_build_state_st.h.

◆ need_uptime

unsigned int need_uptime

Whether every node in the circ must have adequate uptime.

Definition at line 22 of file cpath_build_state_st.h.

Referenced by circuit_describe_status_for_controller(), and circuit_list_path_impl().

◆ onehop_tunnel

unsigned int 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 32 of file cpath_build_state_st.h.

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


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