Tor  0.4.7.0-alpha-dev
Data Fields
bridge_info_t Struct Reference

Data Fields

tor_addr_port_t addrport_configured
 
tor_addr_t addr
 
uint16_t port
 
unsigned marked_for_removal: 1
 
char identity [DIGEST_LEN]
 
char * transport_name
 
download_status_t fetch_status
 
smartlist_tsocks_args
 

Detailed Description

Information about a configured bridge. Currently this just matches the ones in the torrc file, but one day we may be able to learn about new bridges on our own, and remember them in the state file.

Definition at line 43 of file bridges.c.

Field Documentation

◆ addr

tor_addr_t addr

Address of the bridge.

Definition at line 47 of file bridges.c.

Referenced by launch_direct_bridge_descriptor_fetch(), and rewrite_node_address_for_bridge().

◆ addrport_configured

tor_addr_port_t addrport_configured

Address and port of the bridge, as configured by the user.

Definition at line 45 of file bridges.c.

Referenced by bridge_get_addr_port().

◆ fetch_status

download_status_t fetch_status

When should we next try to fetch a descriptor for this bridge?

Definition at line 61 of file bridges.c.

Referenced by launch_direct_bridge_descriptor_fetch(), and learned_bridge_descriptor().

◆ identity

char identity[DIGEST_LEN]

Expected identity digest, or all zero bytes if we don't know what the digest should be.

Definition at line 55 of file bridges.c.

Referenced by bridge_get_rsa_id_digest(), bridge_has_digest(), get_bridge_info_for_guard(), learned_bridge_descriptor(), and learned_router_identity().

◆ marked_for_removal

unsigned marked_for_removal

Boolean: We are re-parsing our bridge list, and we are going to remove this one if we don't find it in the list of configured bridges.

Definition at line 52 of file bridges.c.

Referenced by mark_bridge_list().

◆ port

uint16_t port

TLS port for the bridge.

Definition at line 49 of file bridges.c.

Referenced by launch_direct_bridge_descriptor_fetch().

◆ socks_args

smartlist_t* socks_args

A smartlist of k=v values to be passed to the SOCKS proxy, if transports are used for this bridge.

Definition at line 65 of file bridges.c.

Referenced by bridge_free_(), and get_socks_args_by_bridge_addrport().

◆ transport_name

char* transport_name

Name of pluggable transport protocol taken from its config line.

Definition at line 58 of file bridges.c.

Referenced by bridge_free_(), and bridget_get_transport_name().


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