tor  0.4.2.0-alpha-dev
dir_connection_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 DIR_CONNECTION_ST_H
8 #define DIR_CONNECTION_ST_H
9 
10 #include "core/or/connection_st.h"
11 
13 
17  connection_t base_;
18 
26  unsigned int dirconn_direct:1;
30  uint8_t router_purpose;
31 
37 
40 
41  /* Hidden service connection identifier for dir connections: Used by HS
42  client-side code to fetch HS descriptors, and by the service-side code to
43  upload descriptors. */
44  struct hs_ident_dir_conn_t *hs_ident;
45 
48  struct circuit_guard_state_t *guard_state;
49 
56  uint64_t dirreq_id;
57 
58 #ifdef MEASUREMENTS_21206
59 
60  uint32_t data_cells_received;
61 
63  uint32_t data_cells_sent;
64 #endif /* defined(MEASUREMENTS_21206) */
65 };
66 
67 #endif /* !defined(DIR_CONNECTION_ST_H) */
smartlist_t * spool
struct tor_compress_state_t * compress_state
rend_data_t * rend_data
struct circuit_guard_state_t * guard_state
#define DIGEST_LEN
Definition: digest_sizes.h:20
char identity_digest[DIGEST_LEN]
unsigned int dirconn_direct