tor  0.4.2.0-alpha-dev
or_circuit_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef OR_CIRCUIT_ST_H
8 #define OR_CIRCUIT_ST_H
9 
10 #include "core/or/or.h"
11 
12 #include "core/or/circuit_st.h"
13 #include "core/or/crypt_path_st.h"
14 
16 
17 struct onion_queue_t;
18 
21 struct or_circuit_t {
22  circuit_t base_;
23 
31 
43 
47 
51 
53  char rend_circ_nonce[DIGEST_LEN];/* KH in tor-spec.txt */
54 
57  unsigned int remaining_relay_early_cells : 4;
58 
59  /* We have already received an INTRODUCE1 cell on this circuit. */
60  unsigned int already_received_introduce1 : 1;
61 
65 
68  uint32_t processed_cells;
69 
74 
78 
83 };
84 
85 #endif /* !defined(OR_CIRCUIT_ST_H) */
86 
struct or_circuit_t * rend_splice
Definition: or_circuit_st.h:50
char rend_circ_nonce[DIGEST_LEN]
Definition: or_circuit_st.h:53
channel_t * p_chan
Definition: or_circuit_st.h:37
uint64_t total_cell_waiting_time
Definition: or_circuit_st.h:73
struct onion_queue_t * onionqueue_entry
Definition: or_circuit_st.h:26
edge_connection_t * n_streams
Definition: or_circuit_st.h:39
struct workqueue_entry_s * workqueue_entry
Definition: or_circuit_st.h:30
#define DIGEST_LEN
Definition: digest_sizes.h:20
Master header file for Tor-specific functionality.
unsigned int circuit_carries_hs_traffic_stats
Definition: or_circuit_st.h:64
uint32_t processed_cells
Definition: or_circuit_st.h:68
Headers for token_bucket.c.
circid_t p_circ_id
Definition: or_circuit_st.h:33
unsigned int introduce2_dos_defense_enabled
Definition: or_circuit_st.h:77
cell_queue_t p_chan_cells
Definition: or_circuit_st.h:35
Definition: workqueue.c:95
edge_connection_t * resolving_streams
Definition: or_circuit_st.h:42
uint32_t circid_t
Definition: or.h:608
unsigned int remaining_relay_early_cells
Definition: or_circuit_st.h:57
relay_crypto_t crypto
Definition: or_circuit_st.h:46
token_bucket_ctr_t introduce2_bucket
Definition: or_circuit_st.h:82