tor  0.4.2.1-alpha-dev
or_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 OR_CONNECTION_ST_H
8 #define OR_CONNECTION_ST_H
9 
10 #include "core/or/connection_st.h"
12 
13 struct tor_tls_t;
14 
18  connection_t base_;
19 
23 
36 
37  char *nickname;
39  struct tor_tls_t *tls;
40  int tls_error;
44  /* Channel using this connection */
45  channel_tls_t *chan;
46 
57  unsigned int is_canonical:1;
58 
60  unsigned int is_outgoing:1;
61  unsigned int proxy_type:2;
62  unsigned int wide_circ_ids:1;
69  unsigned int tracked_for_dos_mitigation : 1;
71  unsigned int is_pt : 1;
72 
73  uint16_t link_proto;
75  uint16_t idle_timeout;
87  /*
88  * Count the number of bytes flushed out on this orconn, and the number of
89  * bytes TLS actually sent - used for overhead estimation for scheduling.
90  */
91  uint64_t bytes_xmitted, bytes_xmitted_by_tls;
92 };
93 
94 #endif /* !defined(OR_CONNECTION_ST_H) */
unsigned int is_pt
token_bucket_rw_t bucket
tor_addr_t real_addr
char identity_digest[DIGEST_LEN]
or_handshake_state_t * handshake_state
unsigned int tracked_for_dos_mitigation
char * ext_or_auth_correct_client_hash
struct tor_tls_t * tls
time_t timestamp_lastempty
#define DIGEST_LEN
Definition: digest_sizes.h:20
Headers for token_bucket.c.
unsigned int have_noted_bootstrap_problem
channel_tls_t * chan
unsigned int is_outgoing
unsigned int proxy_type
unsigned int is_canonical