tor  master
Data Fields
or_circuit_t Struct Reference

#include <or.h>

Collaboration diagram for or_circuit_t:
Collaboration graph
[legend]

Data Fields

circuit_t base_
 
struct onion_queue_tonionqueue_entry
 
struct workqueue_entry_sworkqueue_entry
 
circid_t p_circ_id
 
cell_queue_t p_chan_cells
 
channel_tp_chan
 
circuitmux_tp_mux
 
edge_connection_tn_streams
 
edge_connection_tresolving_streams
 
relay_crypto_t crypto
 
struct or_circuit_trend_splice
 
char rend_circ_nonce [DIGEST_LEN]
 
unsigned int remaining_relay_early_cells: 4
 
unsigned int already_received_introduce1: 1
 
unsigned int circuit_carries_hs_traffic_stats: 1
 
uint32_t processed_cells
 
uint64_t total_cell_waiting_time
 

Detailed Description

An or_circuit_t holds information needed to implement a circuit at an OR.

Field Documentation

◆ circuit_carries_hs_traffic_stats

unsigned int circuit_carries_hs_traffic_stats

If set, this circuit carries HS traffic. Consider it in any HS statistics.

◆ crypto

Cryptographic state used for encrypting and authenticating relay cells to and from this hop.

◆ n_streams

edge_connection_t* n_streams

Linked list of Exit streams associated with this circuit.

◆ onionqueue_entry

struct onion_queue_t* onionqueue_entry

Pointer to an entry on the onion queue, if this circuit is waiting for a chance to give an onionskin to a cpuworker. Used only in onion.c

◆ p_chan

channel_t* p_chan

The channel that is previous in this circuit.

◆ p_chan_cells

cell_queue_t p_chan_cells

Queue of cells waiting to be transmitted on p_conn.

◆ p_circ_id

circid_t p_circ_id

The circuit_id used in the previous (backward) hop of this circuit.

◆ p_mux

circuitmux_t* p_mux

Circuit mux associated with p_chan to which this circuit is attached; NULL if we have no p_chan.

◆ processed_cells

uint32_t processed_cells

Number of cells that were removed from circuit queue; reset every time when writing buffer stats to disk.

◆ remaining_relay_early_cells

unsigned int remaining_relay_early_cells

How many more relay_early cells can we send on this circuit, according to the specification?

◆ rend_circ_nonce

char rend_circ_nonce[DIGEST_LEN]

Stores KH for the handshake.

◆ rend_splice

struct or_circuit_t* rend_splice

Points to spliced circuit if purpose is REND_ESTABLISHED, and circuit is not marked for close.

◆ resolving_streams

edge_connection_t* resolving_streams

Linked list of Exit streams associated with this circuit that are still being resolved.

◆ total_cell_waiting_time

uint64_t total_cell_waiting_time

Total time in milliseconds that cells spent in both app-ward and exit-ward queues of this circuit; reset every time when writing buffer stats to disk.

◆ workqueue_entry

struct workqueue_entry_s* workqueue_entry

Pointer to a workqueue entry, if this circuit has given an onionskin to a cpuworker and is waiting for a response. Used to decide whether it is safe to free a circuit or if it is still in use by a cpuworker.


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