26 #ifdef HAVE_SYS_PARAM_H 27 #include <sys/param.h> 30 #ifdef HAVE_SYS_FCNTL_H 31 #include <sys/fcntl.h> 36 #ifdef HAVE_SYS_IOCTL_H 37 #include <sys/ioctl.h> 42 #ifdef HAVE_SYS_STAT_H 45 #ifdef HAVE_NETINET_IN_H 46 #include <netinet/in.h> 48 #ifdef HAVE_ARPA_INET_H 49 #include <arpa/inet.h> 70 #include "crypto_format.h" 73 #include "container.h" 76 #include "compat_libevent.h" 80 #include "crypto_curve25519.h" 81 #include "crypto_ed25519.h" 82 #include "tor_queue.h" 83 #include "token_bucket.h" 84 #include "util_format.h" 106 #define SIGNEWNYM 129 107 #define SIGCLEARDNSCACHE 130 108 #define SIGHEARTBEAT 131 110 #if (SIZEOF_CELL_T != 0) 113 #define cell_t tor_cell_t 116 #ifdef ENABLE_TOR2WEB_MODE 117 #define NON_ANONYMOUS_MODE_ENABLED 1 121 #define DOWNCAST(to, ptr) ((to*)SUBTYPE_P(ptr, to, base_)) 124 #define MAX_NICKNAME_LEN 19 127 #define MAX_HEX_NICKNAME_LEN (HEX_DIGEST_LEN+1) 130 #define MAX_VERBOSE_NICKNAME_LEN (1+HEX_DIGEST_LEN+1+MAX_NICKNAME_LEN) 133 #define MAX_BUF_SIZE ((1<<24)-1) 135 #define MAX_DIR_DL_SIZE MAX_BUF_SIZE 139 #define MAX_HEADERS_SIZE 50000 142 #define MAX_DIR_UL_SIZE MAX_BUF_SIZE 147 #define MAX_DESCRIPTOR_UPLOAD_SIZE 20000 150 #define MAX_EXTRAINFO_UPLOAD_SIZE 50000 153 #define MIN_ONION_KEY_LIFETIME_DAYS (1) 156 #define MAX_ONION_KEY_LIFETIME_DAYS (90) 159 #define DEFAULT_ONION_KEY_LIFETIME_DAYS (28) 164 #define MIN_ONION_KEY_GRACE_PERIOD_DAYS (1) 167 #define DEFAULT_ONION_KEY_GRACE_PERIOD_DAYS (7) 171 #define ONION_KEY_CONSENSUS_CHECK_INTERVAL (60*60) 174 #define MAX_SSL_KEY_LIFETIME_INTERNAL (2*60*60) 178 #define ROUTER_MAX_AGE (60*60*48) 181 #define ROUTER_MAX_AGE_TO_PUBLISH (60*60*24) 183 #define OLD_ROUTER_DESC_MAX_AGE (60*60*24*5) 193 #define circ_id_type_bitfield_t ENUM_BF(circ_id_type_t) 195 #define CONN_TYPE_MIN_ 3 197 #define CONN_TYPE_OR_LISTENER 3 200 #define CONN_TYPE_OR 4 202 #define CONN_TYPE_EXIT 5 204 #define CONN_TYPE_AP_LISTENER 6 207 #define CONN_TYPE_AP 7 209 #define CONN_TYPE_DIR_LISTENER 8 211 #define CONN_TYPE_DIR 9 214 #define CONN_TYPE_CONTROL_LISTENER 11 216 #define CONN_TYPE_CONTROL 12 219 #define CONN_TYPE_AP_TRANS_LISTENER 13 222 #define CONN_TYPE_AP_NATD_LISTENER 14 224 #define CONN_TYPE_AP_DNS_LISTENER 15 227 #define CONN_TYPE_EXT_OR 16 229 #define CONN_TYPE_EXT_OR_LISTENER 17 231 #define CONN_TYPE_AP_HTTP_CONNECT_LISTENER 18 233 #define CONN_TYPE_MAX_ 19 239 #define PROXY_CONNECT 1 240 #define PROXY_SOCKS4 2 241 #define PROXY_SOCKS5 3 247 #define PROXY_PLUGGABLE 4 251 #define PROXY_INFANT 1 253 #define PROXY_HTTPS_WANT_CONNECT_OK 2 255 #define PROXY_SOCKS4_WANT_CONNECT_OK 3 258 #define PROXY_SOCKS5_WANT_AUTH_METHOD_NONE 4 261 #define PROXY_SOCKS5_WANT_AUTH_METHOD_RFC1929 5 263 #define PROXY_SOCKS5_WANT_AUTH_RFC1929_OK 6 265 #define PROXY_SOCKS5_WANT_CONNECT_OK 7 267 #define PROXY_CONNECTED 8 270 #define CONN_IS_EDGE(x) \ 271 ((x)->type == CONN_TYPE_EXIT || (x)->type == CONN_TYPE_AP) 274 #define LISTENER_STATE_READY 0 276 #define OR_CONN_STATE_MIN_ 1 278 #define OR_CONN_STATE_CONNECTING 1 280 #define OR_CONN_STATE_PROXY_HANDSHAKING 2 283 #define OR_CONN_STATE_TLS_HANDSHAKING 3 286 #define OR_CONN_STATE_TLS_CLIENT_RENEGOTIATING 4 290 #define OR_CONN_STATE_TLS_SERVER_RENEGOTIATING 5 294 #define OR_CONN_STATE_OR_HANDSHAKING_V2 6 298 #define OR_CONN_STATE_OR_HANDSHAKING_V3 7 300 #define OR_CONN_STATE_OPEN 8 301 #define OR_CONN_STATE_MAX_ 8 305 #define EXT_OR_CONN_STATE_MIN_ 1 308 #define EXT_OR_CONN_STATE_AUTH_WAIT_AUTH_TYPE 1 310 #define EXT_OR_CONN_STATE_AUTH_WAIT_CLIENT_NONCE 2 312 #define EXT_OR_CONN_STATE_AUTH_WAIT_CLIENT_HASH 3 313 #define EXT_OR_CONN_STATE_AUTH_MAX 3 316 #define EXT_OR_CONN_STATE_OPEN 4 319 #define EXT_OR_CONN_STATE_FLUSHING 5 320 #define EXT_OR_CONN_STATE_MAX_ 5 322 #define EXIT_CONN_STATE_MIN_ 1 324 #define EXIT_CONN_STATE_RESOLVING 1 326 #define EXIT_CONN_STATE_CONNECTING 2 328 #define EXIT_CONN_STATE_OPEN 3 330 #define EXIT_CONN_STATE_RESOLVEFAILED 4 331 #define EXIT_CONN_STATE_MAX_ 4 334 #define AP_CONN_STATE_MIN_ 5 336 #define AP_CONN_STATE_SOCKS_WAIT 5 339 #define AP_CONN_STATE_RENDDESC_WAIT 6 342 #define AP_CONN_STATE_CONTROLLER_WAIT 7 344 #define AP_CONN_STATE_CIRCUIT_WAIT 8 346 #define AP_CONN_STATE_CONNECT_WAIT 9 348 #define AP_CONN_STATE_RESOLVE_WAIT 10 350 #define AP_CONN_STATE_OPEN 11 353 #define AP_CONN_STATE_NATD_WAIT 12 355 #define AP_CONN_STATE_HTTP_CONNECT_WAIT 13 356 #define AP_CONN_STATE_MAX_ 13 360 #define AP_CONN_STATE_IS_UNATTACHED(s) \ 361 ((s) <= AP_CONN_STATE_CIRCUIT_WAIT || (s) == AP_CONN_STATE_NATD_WAIT) 363 #define DIR_CONN_STATE_MIN_ 1 365 #define DIR_CONN_STATE_CONNECTING 1 367 #define DIR_CONN_STATE_CLIENT_SENDING 2 369 #define DIR_CONN_STATE_CLIENT_READING 3 371 #define DIR_CONN_STATE_CLIENT_FINISHED 4 373 #define DIR_CONN_STATE_SERVER_COMMAND_WAIT 5 375 #define DIR_CONN_STATE_SERVER_WRITING 6 376 #define DIR_CONN_STATE_MAX_ 6 380 #define DIR_CONN_IS_SERVER(conn) ((conn)->purpose == DIR_PURPOSE_SERVER) 382 #define CONTROL_CONN_STATE_MIN_ 1 384 #define CONTROL_CONN_STATE_OPEN 1 387 #define CONTROL_CONN_STATE_NEEDAUTH 2 388 #define CONTROL_CONN_STATE_MAX_ 2 390 #define DIR_PURPOSE_MIN_ 4 393 #define DIR_PURPOSE_HAS_FETCHED_RENDDESC_V2 4 396 #define DIR_PURPOSE_FETCH_SERVERDESC 6 399 #define DIR_PURPOSE_FETCH_EXTRAINFO 7 401 #define DIR_PURPOSE_UPLOAD_DIR 8 403 #define DIR_PURPOSE_UPLOAD_VOTE 10 405 #define DIR_PURPOSE_UPLOAD_SIGNATURES 11 408 #define DIR_PURPOSE_FETCH_STATUS_VOTE 12 411 #define DIR_PURPOSE_FETCH_DETACHED_SIGNATURES 13 414 #define DIR_PURPOSE_FETCH_CONSENSUS 14 417 #define DIR_PURPOSE_FETCH_CERTIFICATE 15 420 #define DIR_PURPOSE_SERVER 16 423 #define DIR_PURPOSE_UPLOAD_RENDDESC_V2 17 426 #define DIR_PURPOSE_FETCH_RENDDESC_V2 18 428 #define DIR_PURPOSE_FETCH_MICRODESC 19 430 #define DIR_PURPOSE_UPLOAD_HSDESC 20 432 #define DIR_PURPOSE_FETCH_HSDESC 21 435 #define DIR_PURPOSE_HAS_FETCHED_HSDESC 22 436 #define DIR_PURPOSE_MAX_ 22 440 #define DIR_PURPOSE_IS_UPLOAD(p) \ 441 ((p)==DIR_PURPOSE_UPLOAD_DIR || \ 442 (p)==DIR_PURPOSE_UPLOAD_VOTE || \ 443 (p)==DIR_PURPOSE_UPLOAD_SIGNATURES || \ 444 (p)==DIR_PURPOSE_UPLOAD_RENDDESC_V2 || \ 445 (p)==DIR_PURPOSE_UPLOAD_HSDESC) 447 #define EXIT_PURPOSE_MIN_ 1 449 #define EXIT_PURPOSE_CONNECT 1 451 #define EXIT_PURPOSE_RESOLVE 2 452 #define EXIT_PURPOSE_MAX_ 2 458 #define CIRCUIT_STATE_BUILDING 0 460 #define CIRCUIT_STATE_ONIONSKIN_PENDING 1 463 #define CIRCUIT_STATE_CHAN_WAIT 2 467 #define CIRCUIT_STATE_GUARD_WAIT 3 469 #define CIRCUIT_STATE_OPEN 4 471 #define CIRCUIT_PURPOSE_MIN_ 1 474 #define CIRCUIT_PURPOSE_OR_MIN_ 1 476 #define CIRCUIT_PURPOSE_OR 1 479 #define CIRCUIT_PURPOSE_INTRO_POINT 2 482 #define CIRCUIT_PURPOSE_REND_POINT_WAITING 3 484 #define CIRCUIT_PURPOSE_REND_ESTABLISHED 4 485 #define CIRCUIT_PURPOSE_OR_MAX_ 4 509 #define CIRCUIT_PURPOSE_C_GENERAL 5 510 #define CIRCUIT_PURPOSE_C_HS_MIN_ 6 512 #define CIRCUIT_PURPOSE_C_INTRODUCING 6 515 #define CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT 7 518 #define CIRCUIT_PURPOSE_C_INTRODUCE_ACKED 8 520 #define CIRCUIT_PURPOSE_C_ESTABLISH_REND 9 522 #define CIRCUIT_PURPOSE_C_REND_READY 10 525 #define CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED 11 527 #define CIRCUIT_PURPOSE_C_REND_JOINED 12 529 #define CIRCUIT_PURPOSE_C_HSDIR_GET 13 530 #define CIRCUIT_PURPOSE_C_HS_MAX_ 13 532 #define CIRCUIT_PURPOSE_C_MEASURE_TIMEOUT 14 533 #define CIRCUIT_PURPOSE_C_MAX_ 14 535 #define CIRCUIT_PURPOSE_S_HS_MIN_ 15 538 #define CIRCUIT_PURPOSE_S_ESTABLISH_INTRO 15 541 #define CIRCUIT_PURPOSE_S_INTRO 16 544 #define CIRCUIT_PURPOSE_S_CONNECT_REND 17 547 #define CIRCUIT_PURPOSE_S_REND_JOINED 18 549 #define CIRCUIT_PURPOSE_S_HSDIR_POST 19 550 #define CIRCUIT_PURPOSE_S_HS_MAX_ 19 553 #define CIRCUIT_PURPOSE_TESTING 20 555 #define CIRCUIT_PURPOSE_CONTROLLER 21 557 #define CIRCUIT_PURPOSE_PATH_BIAS_TESTING 22 565 #define CIRCUIT_PURPOSE_HS_VANGUARDS 23 567 #define CIRCUIT_PURPOSE_MAX_ 23 570 #define CIRCUIT_PURPOSE_UNKNOWN 255 574 #define CIRCUIT_PURPOSE_IS_ORIGIN(p) ((p)>CIRCUIT_PURPOSE_OR_MAX_) 577 #define CIRCUIT_PURPOSE_IS_CLIENT(p) \ 578 ((p)> CIRCUIT_PURPOSE_OR_MAX_ && \ 579 (p)<=CIRCUIT_PURPOSE_C_MAX_) 581 #define CIRCUIT_IS_ORIGIN(c) (CIRCUIT_PURPOSE_IS_ORIGIN((c)->purpose)) 584 #define CIRCUIT_PURPOSE_IS_ESTABLISHED_REND(p) \ 585 ((p) == CIRCUIT_PURPOSE_C_REND_JOINED || \ 586 (p) == CIRCUIT_PURPOSE_S_REND_JOINED) 588 #define CIRCUIT_IS_ORCIRC(c) (((circuit_t *)(c))->magic == OR_CIRCUIT_MAGIC) 594 #define CIRCUIT_PURPOSE_COUNTS_TOWARDS_MAXPENDING(p) \ 595 ((p) == CIRCUIT_PURPOSE_C_GENERAL || \ 596 (p) == CIRCUIT_PURPOSE_C_HSDIR_GET) 600 #define MIN_CIRCUITS_HANDLING_STREAM 2 604 #define RELAY_COMMAND_BEGIN 1 605 #define RELAY_COMMAND_DATA 2 606 #define RELAY_COMMAND_END 3 607 #define RELAY_COMMAND_CONNECTED 4 608 #define RELAY_COMMAND_SENDME 5 609 #define RELAY_COMMAND_EXTEND 6 610 #define RELAY_COMMAND_EXTENDED 7 611 #define RELAY_COMMAND_TRUNCATE 8 612 #define RELAY_COMMAND_TRUNCATED 9 613 #define RELAY_COMMAND_DROP 10 614 #define RELAY_COMMAND_RESOLVE 11 615 #define RELAY_COMMAND_RESOLVED 12 616 #define RELAY_COMMAND_BEGIN_DIR 13 617 #define RELAY_COMMAND_EXTEND2 14 618 #define RELAY_COMMAND_EXTENDED2 15 620 #define RELAY_COMMAND_ESTABLISH_INTRO 32 621 #define RELAY_COMMAND_ESTABLISH_RENDEZVOUS 33 622 #define RELAY_COMMAND_INTRODUCE1 34 623 #define RELAY_COMMAND_INTRODUCE2 35 624 #define RELAY_COMMAND_RENDEZVOUS1 36 625 #define RELAY_COMMAND_RENDEZVOUS2 37 626 #define RELAY_COMMAND_INTRO_ESTABLISHED 38 627 #define RELAY_COMMAND_RENDEZVOUS_ESTABLISHED 39 628 #define RELAY_COMMAND_INTRODUCE_ACK 40 631 #define END_OR_CONN_REASON_DONE 1 632 #define END_OR_CONN_REASON_REFUSED 2 633 #define END_OR_CONN_REASON_OR_IDENTITY 3 634 #define END_OR_CONN_REASON_CONNRESET 4 635 #define END_OR_CONN_REASON_TIMEOUT 5 636 #define END_OR_CONN_REASON_NO_ROUTE 6 637 #define END_OR_CONN_REASON_IO_ERROR 7 638 #define END_OR_CONN_REASON_RESOURCE_LIMIT 8 639 #define END_OR_CONN_REASON_PT_MISSING 9 640 #define END_OR_CONN_REASON_MISC 10 644 #define END_STREAM_REASON_MISC 1 645 #define END_STREAM_REASON_RESOLVEFAILED 2 646 #define END_STREAM_REASON_CONNECTREFUSED 3 647 #define END_STREAM_REASON_EXITPOLICY 4 648 #define END_STREAM_REASON_DESTROY 5 649 #define END_STREAM_REASON_DONE 6 650 #define END_STREAM_REASON_TIMEOUT 7 651 #define END_STREAM_REASON_NOROUTE 8 652 #define END_STREAM_REASON_HIBERNATING 9 653 #define END_STREAM_REASON_INTERNAL 10 654 #define END_STREAM_REASON_RESOURCELIMIT 11 655 #define END_STREAM_REASON_CONNRESET 12 656 #define END_STREAM_REASON_TORPROTOCOL 13 657 #define END_STREAM_REASON_NOTDIRECTORY 14 658 #define END_STREAM_REASON_ENTRYPOLICY 15 667 #define END_STREAM_REASON_CANT_ATTACH 257 670 #define END_STREAM_REASON_NET_UNREACHABLE 258 673 #define END_STREAM_REASON_SOCKSPROTOCOL 259 676 #define END_STREAM_REASON_CANT_FETCH_ORIG_DEST 260 679 #define END_STREAM_REASON_INVALID_NATD_DEST 261 682 #define END_STREAM_REASON_PRIVATE_ADDR 262 686 #define END_STREAM_REASON_HTTPPROTOCOL 263 689 #define END_STREAM_REASON_MASK 511 693 #define END_STREAM_REASON_FLAG_REMOTE 512 696 #define END_STREAM_REASON_FLAG_ALREADY_SENT_CLOSED 1024 700 #define END_STREAM_REASON_FLAG_ALREADY_SOCKS_REPLIED 2048 704 #define REMAP_STREAM_SOURCE_CACHE 1 707 #define REMAP_STREAM_SOURCE_EXIT 2 710 #define RESOLVED_TYPE_HOSTNAME 0 711 #define RESOLVED_TYPE_IPV4 4 712 #define RESOLVED_TYPE_IPV6 6 713 #define RESOLVED_TYPE_ERROR_TRANSIENT 0xF0 714 #define RESOLVED_TYPE_ERROR 0xF1 720 #define END_CIRC_REASON_IP_NOW_REDUNDANT -4 724 #define END_CIRC_REASON_MEASUREMENT_EXPIRED -3 727 #define END_CIRC_REASON_NOPATH -2 729 #define END_CIRC_AT_ORIGIN -1 733 #define END_CIRC_REASON_MIN_ 0 734 #define END_CIRC_REASON_NONE 0 735 #define END_CIRC_REASON_TORPROTOCOL 1 736 #define END_CIRC_REASON_INTERNAL 2 737 #define END_CIRC_REASON_REQUESTED 3 738 #define END_CIRC_REASON_HIBERNATING 4 739 #define END_CIRC_REASON_RESOURCELIMIT 5 740 #define END_CIRC_REASON_CONNECTFAILED 6 741 #define END_CIRC_REASON_OR_IDENTITY 7 742 #define END_CIRC_REASON_CHANNEL_CLOSED 8 743 #define END_CIRC_REASON_FINISHED 9 744 #define END_CIRC_REASON_TIMEOUT 10 745 #define END_CIRC_REASON_DESTROYED 11 746 #define END_CIRC_REASON_NOSUCHSERVICE 12 747 #define END_CIRC_REASON_MAX_ 12 752 #define END_CIRC_REASON_FLAG_REMOTE 512 755 #define REND_SERVICE_ID_LEN_BASE32 16 758 #define REND_SERVICE_ADDRESS_LEN (16+1+5) 761 #define REND_SERVICE_ID_LEN 10 764 #define REND_TIME_PERIOD_V2_DESC_VALIDITY (24*60*60) 768 #define REND_TIME_PERIOD_OVERLAPPING_V2_DESCS (60*60) 772 #define REND_NUMBER_OF_NON_CONSECUTIVE_REPLICAS 2 775 #define REND_NUMBER_OF_CONSECUTIVE_REPLICAS 3 778 #define REND_DESC_ID_V2_LEN_BASE32 BASE32_DIGEST_LEN 782 #define REND_SECRET_ID_PART_LEN_BASE32 BASE32_DIGEST_LEN 786 #define REND_INTRO_POINT_ID_LEN_BASE32 BASE32_DIGEST_LEN 790 #define REND_DESC_COOKIE_LEN 16 794 #define REND_DESC_COOKIE_LEN_BASE64 22 798 #define REND_BASIC_AUTH_CLIENT_ID_LEN 4 803 #define REND_BASIC_AUTH_CLIENT_MULTIPLE 16 807 #define REND_BASIC_AUTH_CLIENT_ENTRY_LEN (REND_BASIC_AUTH_CLIENT_ID_LEN \ 811 #define REND_DESC_MAX_SIZE (20 * 1024) 815 #define REND_LEGAL_CLIENTNAME_CHARACTERS \ 816 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-_" 819 #define REND_CLIENTNAME_MAX_LEN 16 823 #define REND_COOKIE_LEN DIGEST_LEN 829 REND_STEALTH_AUTH = 2,
914 #define REND_REPLAY_TIME_INTERVAL (5 * 60) 924 #define CIRCWINDOW_START 1000 925 #define CIRCWINDOW_START_MIN 100 926 #define CIRCWINDOW_START_MAX 1000 928 #define CIRCWINDOW_INCREMENT 100 931 #define STREAMWINDOW_START 500 933 #define STREAMWINDOW_INCREMENT 50 942 #define ORCIRC_MAX_MIDDLE_CELLS (CIRCWINDOW_START_MAX*2) 946 #define ORCIRC_MAX_MIDDLE_KILL_THRESH (1.1f) 949 #define CELL_PADDING 0 950 #define CELL_CREATE 1 951 #define CELL_CREATED 2 953 #define CELL_DESTROY 4 954 #define CELL_CREATE_FAST 5 955 #define CELL_CREATED_FAST 6 956 #define CELL_VERSIONS 7 957 #define CELL_NETINFO 8 958 #define CELL_RELAY_EARLY 9 959 #define CELL_CREATE2 10 960 #define CELL_CREATED2 11 961 #define CELL_PADDING_NEGOTIATE 12 963 #define CELL_VPADDING 128 964 #define CELL_CERTS 129 965 #define CELL_AUTH_CHALLENGE 130 966 #define CELL_AUTHENTICATE 131 967 #define CELL_AUTHORIZE 132 968 #define CELL_COMMAND_MAX_ 132 971 #define TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT (20*60) 974 #define LEGAL_NICKNAME_CHARACTERS \ 975 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" 979 #define DEFAULT_CLIENT_NICKNAME "client" 982 #define UNNAMED_ROUTER_NICKNAME "Unnamed" 985 #define SOCKS4_NETWORK_LEN 8 998 #define CELL_PAYLOAD_SIZE 509 1001 #define CELL_MAX_NETWORK_SIZE 514 1004 #define VAR_CELL_MAX_HEADER_SIZE 7 1006 static int get_cell_network_size(
int wide_circ_ids);
1007 static inline int get_cell_network_size(
int wide_circ_ids)
1011 static int get_var_cell_header_size(
int wide_circ_ids);
1012 static inline int get_var_cell_header_size(
int wide_circ_ids)
1017 static int get_circ_id_size(
int wide_circ_ids);
1018 static inline int get_circ_id_size(
int wide_circ_ids)
1020 return wide_circ_ids ? 4 : 2;
1025 #define RELAY_HEADER_SIZE (1+2+2+4+2) 1027 #define RELAY_PAYLOAD_SIZE (CELL_PAYLOAD_SIZE-RELAY_HEADER_SIZE) 1053 CHANNEL_STATE_CLOSED = 0,
1064 CHANNEL_STATE_OPENING,
1088 CHANNEL_STATE_MAINT,
1099 CHANNEL_STATE_CLOSING,
1111 CHANNEL_STATE_ERROR,
1129 CHANNEL_LISTENER_STATE_CLOSED = 0,
1140 CHANNEL_LISTENER_STATE_LISTENING,
1150 CHANNEL_LISTENER_STATE_CLOSING,
1160 CHANNEL_LISTENER_STATE_ERROR,
1164 CHANNEL_LISTENER_STATE_LAST
1165 } channel_listener_state_t;
1169 typedef struct channel_tls_s channel_tls_t;
1193 uint8_t payload[FLEXIBLE_ARRAY_MEMBER];
1200 char body[FLEXIBLE_ARRAY_MEMBER];
1261 unsigned int ipv4_traffic : 1;
1262 unsigned int ipv6_traffic : 1;
1263 unsigned int prefer_ipv6 : 1;
1264 unsigned int dns_request : 1;
1265 unsigned int onion_traffic : 1;
1272 unsigned int cache_ipv6_answers : 1;
1279 unsigned int use_cached_ipv6_answers : 1;
1289 unsigned int no_advertise : 1;
1290 unsigned int no_listen : 1;
1291 unsigned int all_addrs : 1;
1292 unsigned int bind_ipv4_only : 1;
1293 unsigned int bind_ipv6_only : 1;
1298 #define BASE_CONNECTION_MAGIC 0x7C3C304Eu 1299 #define OR_CONNECTION_MAGIC 0x7D31FF03u 1300 #define EDGE_CONNECTION_MAGIC 0xF0374013u 1301 #define ENTRY_CONNECTION_MAGIC 0xbb4a5703 1302 #define DIR_CONNECTION_MAGIC 0x9988ffeeu 1303 #define CONTROL_CONNECTION_MAGIC 0x8abc765du 1304 #define LISTENER_CONNECTION_MAGIC 0x1a1ac741u 1440 #define OR_AUTH_CHALLENGE_LEN 32 1452 #define OR_CERT_TYPE_TLS_LINK 1 1455 #define OR_CERT_TYPE_ID_1024 2 1459 #define OR_CERT_TYPE_AUTH_1024 3 1461 #define OR_CERT_TYPE_RSA_ED_CROSSCERT 7 1470 #define AUTHTYPE_RSA_SHA256_TLSSECRET 1 1478 #define AUTHTYPE_RSA_SHA256_RFC5705 2 1481 #define AUTHTYPE_ED25519_SHA256_RFC5705 3 1493 #define V3_AUTH_FIXED_PART_LEN (8+(32*6)) 1496 #define V3_AUTH_BODY_LEN (V3_AUTH_FIXED_PART_LEN + 8 + 16) 1545 unsigned int authenticated : 1;
1546 unsigned int authenticated_rsa : 1;
1547 unsigned int authenticated_ed25519 : 1;
1550 unsigned int sent_netinfo : 1;
1568 unsigned int digest_received_data : 1;
1594 #define EXT_OR_CONN_ID_LEN DIGEST_LEN 1602 #define OR_CONN_HIGHWATER (32*1024) 1606 #define OR_CONN_LOWWATER (16*1024) 1655 unsigned int wide_circ_ids:1;
1682 uint64_t bytes_xmitted, bytes_xmitted_by_tls;
1713 uint32_t begincell_flags;
1784 struct buf_t *sending_optimistic_data;
1790 #define DEBUGGING_17659 1792 #ifdef DEBUGGING_17659 1793 uint16_t marked_pending_circ_line;
1794 const char *marked_pending_circ_file;
1797 #define NUM_CIRCUITS_LAUNCHED_THRESHOLD 10 1875 #ifdef MEASUREMENTS_21206 1877 uint32_t data_cells_received;
1880 uint32_t data_cells_sent;
1917 #define TO_CONN(c) (&(((c)->base_))) 1920 #define ENTRY_TO_EDGE_CONN(c) (&(((c))->edge_)) 1922 #define ENTRY_TO_CONN(c) (TO_CONN(ENTRY_TO_EDGE_CONN(c))) 1959 c->
magic == ENTRY_CONNECTION_MAGIC);
1985 ADDR_POLICY_ACCEPT=1,
1986 ADDR_POLICY_REJECT=2,
1988 #define addr_policy_action_bitfield_t ENUM_BF(addr_policy_action_t) 1994 addr_policy_action_bitfield_t policy_type:2;
2048 #define saved_location_bitfield_t ENUM_BF(saved_location_t) 2053 DL_SCHED_GENERIC = 0,
2054 DL_SCHED_CONSENSUS = 1,
2055 DL_SCHED_BRIDGE = 2,
2057 #define download_schedule_bitfield_t ENUM_BF(download_schedule_t) 2065 DL_WANT_ANY_DIRSERVER = 0,
2066 DL_WANT_AUTHORITY = 1,
2068 #define download_want_authority_bitfield_t \ 2069 ENUM_BF(download_want_authority_t) 2075 DL_SCHED_INCREMENT_FAILURE = 0,
2076 DL_SCHED_INCREMENT_ATTEMPT = 1,
2078 #define download_schedule_increment_bitfield_t \ 2079 ENUM_BF(download_schedule_increment_t) 2115 download_schedule_bitfield_t schedule : 8;
2119 download_want_authority_bitfield_t want_authority : 1;
2124 download_schedule_increment_bitfield_t increment_on : 1;
2136 #define IMPOSSIBLE_TO_DOWNLOAD 255 2141 #define ROUTER_ANNOTATION_BUF_LEN 256 2181 unsigned int do_not_cache : 1;
2183 unsigned int is_extrainfo : 1;
2186 unsigned int extrainfo_is_bogus : 1;
2188 unsigned int send_unencrypted : 1;
2245 uint16_t ipv6_orport;
2305 #define ROUTER_PURPOSE_GENERAL 0 2309 #define ROUTER_PURPOSE_CONTROLLER 1 2313 #define ROUTER_PURPOSE_BRIDGE 2 2316 #define ROUTER_PURPOSE_UNKNOWN 255 2377 unsigned int is_v2_dir:1;
2411 uint16_t min_port, max_port;
2444 saved_location_bitfield_t saved_location : 3;
2510 HT_ENTRY(
node_t) ed_ht_ent;
2537 unsigned int is_fast:1;
2570 time_t last_reachable6;
2595 #define MAX_KNOWN_FLAGS_IN_VOTE 64 2614 uint8_t ed25519_id[ED25519_PUBKEY_LEN];
2658 unsigned int participate:1;
2683 #define N_CONSENSUS_FLAVORS ((int)(FLAV_MICRODESC)+1) 2718 char *server_versions;
2725 char *recommended_client_protocols;
2726 char *required_relay_protocols;
2727 char *required_client_protocols;
2891 #define ALL_DIRINFO ((dirinfo_type_t)((1<<7)-1)) 2893 #define CRYPT_PATH_MAGIC 0x70127012u 2896 struct ntor_handshake_state_t;
2897 #define ONION_HANDSHAKE_TYPE_TAP 0x0000 2898 #define ONION_HANDSHAKE_TYPE_FAST 0x0001 2899 #define ONION_HANDSHAKE_TYPE_NTOR 0x0002 2900 #define MAX_ONION_HANDSHAKE_TYPE 0x0002 2906 struct ntor_handshake_state_t *ntor;
2954 #define CPATH_STATE_CLOSED 0 2955 #define CPATH_STATE_AWAITING_KEYS 1 2956 #define CPATH_STATE_OPEN 2 2981 #define CPATH_KEY_MATERIAL_LEN (20*2+16*2) 2983 #define DH_KEY_LEN DH_BYTES 3013 #define ORIGIN_CIRCUIT_MAGIC 0x35315243u 3015 #define OR_CIRCUIT_MAGIC 0x98ABC04Fu 3019 #define DEAD_CIRCUIT_MAGIC 0xdeadc14c 3195 #define MAX_RELAY_EARLY_CELLS_PER_CIRCUIT 8 3252 #define path_state_bitfield_t ENUM_BF(path_state_t) 3336 path_state_bitfield_t path_state : 3;
3340 unsigned int unusable_for_new_conns : 1;
3350 #define PATHBIAS_SHOULDCOUNT_UNDECIDED 0 3351 #define PATHBIAS_SHOULDCOUNT_IGNORED 1 3352 #define PATHBIAS_SHOULDCOUNT_COUNTED 2 3442 uint8_t client_proto_type;
3443 uint8_t client_proto_socksver;
3449 size_t socks_username_len;
3450 uint8_t socks_password_len;
3453 char *socks_username;
3454 char *socks_password;
3520 unsigned int already_received_introduce1 : 1;
3536 #if REND_COOKIE_LEN != DIGEST_LEN 3537 #error "The REND_TOKEN_LEN macro assumes REND_COOKIE_LEN == DIGEST_LEN" 3539 #define REND_TOKEN_LEN DIGEST_LEN 3542 #define TO_CIRCUIT(x) (&((x)->base_)) 3556 static inline int node_is_good_exit(
const node_t *node)
3584 #define MIN_CONSTRAINED_TCP_BUFFER 2048 3585 #define MAX_CONSTRAINED_TCP_BUFFER 262144 3594 #define ISO_DESTPORT (1u<<0) 3596 #define ISO_DESTADDR (1u<<1) 3598 #define ISO_SOCKSAUTH (1u<<2) 3600 #define ISO_CLIENTPROTO (1u<<3) 3602 #define ISO_CLIENTADDR (1u<<4) 3604 #define ISO_SESSIONGRP (1u<<5) 3606 #define ISO_NYM_EPOCH (1u<<6) 3608 #define ISO_STREAM (1u<<7) 3612 #define ISO_DEFAULT (ISO_CLIENTADDR|ISO_SOCKSAUTH|ISO_SESSIONGRP|ISO_NYM_EPOCH) 3615 #define SESSION_GROUP_UNSET -1 3617 #define SESSION_GROUP_DIRCONN -2 3619 #define SESSION_GROUP_CONTROL_RESOLVE -3 3621 #define SESSION_GROUP_FIRST_AUTO -4 3631 unsigned is_group_writable : 1;
3632 unsigned is_world_writable : 1;
3633 unsigned relax_dirmode_check : 1;
3641 char unix_addr[FLEXIBLE_ARRAY_MEMBER];
3644 typedef struct routerset_t routerset_t;
3648 #define CFG_AUTO_PORT 0xc4005e 3652 typedef enum {OUTBOUND_ADDR_EXIT, OUTBOUND_ADDR_OR,
3653 OUTBOUND_ADDR_EXIT_AND_OR,
3662 CMD_RUN_TOR=0, CMD_LIST_FINGERPRINT, CMD_HASH_PASSWORD,
3663 CMD_VERIFY_CONFIG, CMD_RUN_UNITTESTS, CMD_DUMP_CONFIG,
3770 } TransProxyType_parsed;
3788 uint64_t MaxMemInQueues_raw;
3807 unsigned int ORPort_set : 1;
3808 unsigned int SocksPort_set : 1;
3809 unsigned int TransPort_set : 1;
3810 unsigned int NATDPort_set : 1;
3811 unsigned int ControlPort_set : 1;
3812 unsigned int DirPort_set : 1;
3813 unsigned int DNSPort_set : 1;
3814 unsigned int ExtORPort_set : 1;
3815 unsigned int HTTPTunnelPort_set : 1;
3925 int HiddenServiceNonAnonymousMode;
3993 int MaxOnionQueueDelay;
4112 enum { ACCT_MAX, ACCT_SUM, ACCT_IN, ACCT_OUT } AccountingRule;
4147 SAFELOG_SCRUB_ALL, SAFELOG_SCRUB_RELAY, SAFELOG_SCRUB_NONE
4432 int TestingDirAuthVoteExitIsStrict;
4437 int TestingDirAuthVoteGuardIsStrict;
4442 int TestingDirAuthVoteHSDirIsStrict;
4481 double CircuitPriorityHalflife;
4497 #define MAX_MAX_CLIENT_CIRCUITS_PENDING 1024 4536 double PathBiasNoticeRate;
4537 double PathBiasWarnRate;
4538 double PathBiasExtremeRate;
4539 int PathBiasDropGuards;
4540 int PathBiasScaleThreshold;
4562 double PathBiasNoticeUseRate;
4563 double PathBiasExtremeUseRate;
4564 int PathBiasScaleUseThreshold;
4605 FORCE_PASSPHRASE_AUTO=0,
4606 FORCE_PASSPHRASE_ON,
4607 FORCE_PASSPHRASE_OFF
4608 } keygen_force_passphrase;
4609 int use_keygen_passphrase_fd;
4610 int keygen_passphrase_fd;
4611 int change_key_passphrase;
4612 char *master_key_fname;
4705 #define LOG_PROTOCOL_WARN (get_protocol_warning_severity_level()) 4720 uint64_t AccountingBytesReadInInterval;
4721 uint64_t AccountingBytesWrittenInInterval;
4722 int AccountingSecondsActive;
4723 int AccountingSecondsToReachSoftLimit;
4724 time_t AccountingSoftLimitHitAt;
4725 uint64_t AccountingBytesAtSoftLimit;
4726 uint64_t AccountingExpectedUsage;
4748 int BWHistoryReadInterval;
4751 time_t BWHistoryWriteEnds;
4752 int BWHistoryWriteInterval;
4755 time_t BWHistoryDirReadEnds;
4756 int BWHistoryDirReadInterval;
4759 time_t BWHistoryDirWriteEnds;
4760 int BWHistoryDirWriteInterval;
4766 int TotalBuildTimes;
4767 int CircuitBuildAbandonedCount;
4780 #define MAX_SOCKS_REPLY_LEN 1024 4781 #define MAX_SOCKS_ADDR_LEN 256 4782 #define SOCKS_NO_AUTH 0x00 4783 #define SOCKS_USER_PASS 0x02 4786 #define SOCKS_COMMAND_CONNECT 0x01 4788 #define SOCKS_COMMAND_RESOLVE 0xF0 4790 #define SOCKS_COMMAND_RESOLVE_PTR 0xF1 4793 #define SOCKS_COMMAND_IS_CONNECT(c) (((c)==SOCKS_COMMAND_CONNECT) || 0) 4794 #define SOCKS_COMMAND_IS_RESOLVE(c) ((c)==SOCKS_COMMAND_RESOLVE || \ 4795 (c)==SOCKS_COMMAND_RESOLVE_PTR) 4814 uint8_t reply[MAX_SOCKS_REPLY_LEN];
4820 char address[MAX_SOCKS_ADDR_LEN];
4848 #define DEFAULT_ROUTE_LEN 3 4853 #define BW_WEIGHT_SCALE 10000 4854 #define BW_MIN_WEIGHT_SCALE 1 4855 #define BW_MAX_WEIGHT_SCALE INT32_MAX 4859 #define CBT_NCIRCUITS_TO_OBSERVE 1000 4862 #define CBT_BIN_WIDTH ((build_time_t)50) 4865 #define CBT_DEFAULT_NUM_XM_MODES 3 4866 #define CBT_MIN_NUM_XM_MODES 1 4867 #define CBT_MAX_NUM_XM_MODES 20 4876 #define CBT_BUILD_ABANDONED ((build_time_t)(INT32_MAX-1)) 4877 #define CBT_BUILD_TIME_MAX ((build_time_t)(INT32_MAX)) 4880 #define CBT_SAVE_STATE_EVERY 10 4888 #define CBT_DEFAULT_CLOSE_QUANTILE 95 4889 #define CBT_MIN_CLOSE_QUANTILE CBT_MIN_QUANTILE_CUTOFF 4890 #define CBT_MAX_CLOSE_QUANTILE CBT_MAX_QUANTILE_CUTOFF 4896 #define CBT_DEFAULT_RECENT_CIRCUITS 20 4897 #define CBT_MIN_RECENT_CIRCUITS 3 4898 #define CBT_MAX_RECENT_CIRCUITS 1000 4908 #define CBT_DEFAULT_MAX_RECENT_TIMEOUT_COUNT (CBT_DEFAULT_RECENT_CIRCUITS*9/10) 4909 #define CBT_MIN_MAX_RECENT_TIMEOUT_COUNT 3 4910 #define CBT_MAX_MAX_RECENT_TIMEOUT_COUNT 10000 4913 #define CBT_DEFAULT_MIN_CIRCUITS_TO_OBSERVE 100 4914 #define CBT_MIN_MIN_CIRCUITS_TO_OBSERVE 1 4915 #define CBT_MAX_MIN_CIRCUITS_TO_OBSERVE 10000 4918 #define CBT_DEFAULT_QUANTILE_CUTOFF 80 4919 #define CBT_MIN_QUANTILE_CUTOFF 10 4920 #define CBT_MAX_QUANTILE_CUTOFF 99 4924 #define CBT_DEFAULT_TEST_FREQUENCY 10 4925 #define CBT_MIN_TEST_FREQUENCY 1 4926 #define CBT_MAX_TEST_FREQUENCY INT32_MAX 4929 #define CBT_DEFAULT_TIMEOUT_MIN_VALUE (1500) 4930 #define CBT_MIN_TIMEOUT_MIN_VALUE 500 4931 #define CBT_MAX_TIMEOUT_MIN_VALUE INT32_MAX 4934 #define CBT_DEFAULT_TIMEOUT_INITIAL_VALUE (60*1000) 4935 #define CBT_MIN_TIMEOUT_INITIAL_VALUE CBT_MIN_TIMEOUT_MIN_VALUE 4936 #define CBT_MAX_TIMEOUT_INITIAL_VALUE INT32_MAX 4939 #if CBT_DEFAULT_MAX_RECENT_TIMEOUT_COUNT < CBT_MIN_MAX_RECENT_TIMEOUT_COUNT 4940 #error "RECENT_CIRCUITS is set too low." 4958 typedef struct circuit_build_times_s circuit_build_times_t;
4965 SETOPT_ERR_MISC = -1,
4966 SETOPT_ERR_PARSE = -2,
4967 SETOPT_ERR_TRANSITION = -3,
4968 SETOPT_ERR_SETTING = -4,
4995 #define addressmap_entry_source_bitfield_t ENUM_BF(addressmap_entry_source_t) 5002 CIRC_EVENT_LAUNCHED = 0,
5003 CIRC_EVENT_BUILT = 1,
5004 CIRC_EVENT_EXTENDED = 2,
5005 CIRC_EVENT_FAILED = 3,
5006 CIRC_EVENT_CLOSED = 4,
5012 CIRC_MINOR_EVENT_PURPOSE_CHANGED,
5013 CIRC_MINOR_EVENT_CANNIBALIZED,
5019 STREAM_EVENT_SENT_CONNECT = 0,
5020 STREAM_EVENT_SENT_RESOLVE = 1,
5021 STREAM_EVENT_SUCCEEDED = 2,
5022 STREAM_EVENT_FAILED = 3,
5023 STREAM_EVENT_CLOSED = 4,
5024 STREAM_EVENT_NEW = 5,
5025 STREAM_EVENT_NEW_RESOLVE = 6,
5026 STREAM_EVENT_FAILED_RETRIABLE = 7,
5027 STREAM_EVENT_REMAP = 8
5033 OR_CONN_EVENT_LAUNCHED = 0,
5034 OR_CONN_EVENT_CONNECTED = 1,
5035 OR_CONN_EVENT_FAILED = 2,
5036 OR_CONN_EVENT_CLOSED = 3,
5037 OR_CONN_EVENT_NEW = 4,
5042 BUILDTIMEOUT_SET_EVENT_COMPUTED = 0,
5043 BUILDTIMEOUT_SET_EVENT_RESET = 1,
5044 BUILDTIMEOUT_SET_EVENT_SUSPENDED = 2,
5045 BUILDTIMEOUT_SET_EVENT_DISCARD = 3,
5046 BUILDTIMEOUT_SET_EVENT_RESUME = 4
5055 #define CONN_LOG_PROTECT(conn, stmt) \ 5057 int _log_conn_is_control; \ 5059 _log_conn_is_control = (conn->type == CONN_TYPE_CONTROL); \ 5060 if (_log_conn_is_control) \ 5061 disable_control_logging(); \ 5062 STMT_BEGIN stmt; STMT_END; \ 5063 if (_log_conn_is_control) \ 5064 enable_control_logging(); \ 5070 BOOTSTRAP_STATUS_UNDEF=-1,
5071 BOOTSTRAP_STATUS_STARTING=0,
5072 BOOTSTRAP_STATUS_CONN_DIR=5,
5073 BOOTSTRAP_STATUS_HANDSHAKE=-2,
5074 BOOTSTRAP_STATUS_HANDSHAKE_DIR=10,
5075 BOOTSTRAP_STATUS_ONEHOP_CREATE=15,
5076 BOOTSTRAP_STATUS_REQUESTING_STATUS=20,
5077 BOOTSTRAP_STATUS_LOADING_STATUS=25,
5078 BOOTSTRAP_STATUS_LOADING_KEYS=40,
5079 BOOTSTRAP_STATUS_REQUESTING_DESCRIPTORS=45,
5080 BOOTSTRAP_STATUS_LOADING_DESCRIPTORS=50,
5081 BOOTSTRAP_STATUS_CONN_OR=80,
5082 BOOTSTRAP_STATUS_HANDSHAKE_OR=85,
5083 BOOTSTRAP_STATUS_CIRCUIT_CREATE=90,
5084 BOOTSTRAP_STATUS_DONE=100
5112 #ifdef DIRSERV_PRIVATE 5113 typedef struct measured_bw_line_t {
5117 } measured_bw_line_t;
5165 #define GEOIP_NS_RESPONSE_NUM 6 5171 DIRREQ_TUNNELED = 1,
5196 #define WRITE_STATS_INTERVAL (24*60*60) 5240 VERIFY_DIR, VERIFY_RTR,
5241 ENC_ONIONSKIN, DEC_ONIONSKIN,
5242 TLS_HANDSHAKE_C, TLS_HANDSHAKE_S,
5243 REND_CLIENT, REND_MID, REND_SERVER,
5264 #define MAX_INTRO_POINT_REACHABILITY_FAILURES 5 5269 #define INTRO_POINT_MIN_LIFETIME_INTRODUCTIONS 16384 5271 #define INTRO_POINT_MAX_LIFETIME_INTRODUCTIONS \ 5272 (INTRO_POINT_MIN_LIFETIME_INTRODUCTIONS * 2) 5280 #define INTRO_POINT_LIFETIME_MIN_SECONDS (18*60*60) 5285 #define INTRO_POINT_LIFETIME_MAX_SECONDS (24*60*60) 5290 #define MAX_INTRO_POINT_CIRCUIT_RETRIES 3 5355 #define REND_PROTOCOL_VERSION_BITMASK_WIDTH 16 5420 #define RELAY_REQUIRED_MIN_BANDWIDTH (75*1024) 5421 #define BRIDGE_REQUIRED_MIN_BANDWIDTH (50*1024) 5423 #define ROUTER_MAX_DECLARED_BANDWIDTH INT32_MAX 5429 #define PDS_ALLOW_SELF (1<<0) 5433 #define PDS_RETRY_IF_NO_SERVERS (1<<1) 5439 #define PDS_IGNORE_FASCISTFIREWALL (1<<2) 5446 #define PDS_NO_EXISTING_SERVERDESC_FETCH (1<<3) 5452 #define PDS_NO_EXISTING_MICRODESC_FETCH (1<<4) 5457 NO_WEIGHTING, WEIGHT_FOR_EXIT, WEIGHT_FOR_MID, WEIGHT_FOR_GUARD,
5464 CRN_NEED_UPTIME = 1<<0,
5465 CRN_NEED_CAPACITY = 1<<1,
5466 CRN_NEED_GUARD = 1<<2,
5468 CRN_WEIGHT_AS_EXIT = 1<<5,
5469 CRN_NEED_DESC = 1<<6,
5471 CRN_PREF_ADDR = 1<<7,
5474 CRN_DIRECT_CONN = 1<<8,
5477 CRN_RENDEZVOUS_V3 = 1<<9,
5483 ROUTER_ADDED_SUCCESSFULLY = 1,
5489 ROUTER_IS_ALREADY_KNOWN = -2,
5492 ROUTER_NOT_IN_CONSENSUS = -3,
5496 ROUTER_NOT_IN_CONSENSUS_OR_NETWORKSTATUS = -4,
5498 ROUTER_AUTHDIR_REJECTS = -5,
5501 ROUTER_WAS_NOT_WANTED = -6,
5504 ROUTER_WAS_TOO_OLD = -7,
5506 ROUTER_CERTS_EXPIRED = -8
5511 #define MAX_STATUS_TAG_LEN 32 5523 enum { VER_PRE=0, VER_RC=1, VER_RELEASE=2, } status;
5525 char status_tag[MAX_STATUS_TAG_LEN];
streamid_t stream_id
Definition: or.h:1716
int MinMeasuredBWsForAuthToIgnoreAdvertised
Definition: or.h:4322
int KeyDirectoryGroupReadable
Definition: or.h:3689
config_line_t * SocksPort_lines
Definition: or.h:3759
unsigned int is_internal
Definition: or.h:2996
int NoExec
Definition: or.h:4650
unsigned int is_stable
Definition: or.h:2538
int V3AuthUseLegacyKey
Definition: or.h:4308
curve25519_public_key_t * onion_curve25519_pkey
Definition: or.h:2473
config_line_t * AlternateBridgeAuthority
Definition: or.h:4061
ed25519_public_key_t * ed25519_identity_pkey
Definition: or.h:2475
struct rend_service_descriptor_t rend_service_descriptor_t
crypto_pk_t * identity_pkey
Definition: or.h:2248
char * microdesc_hash_line
Definition: or.h:2586
tor_tls_t * tls
Definition: or.h:1632
smartlist_t * TrackHostExits
Definition: or.h:3963
int TruncateLogFile
Definition: or.h:3675
curve25519_public_key_t * onion_curve25519_pkey
Definition: or.h:2250
crypto_cipher_t * b_crypto
Definition: or.h:2917
char * username
Definition: or.h:4839
char * DirPortFrontPage
Definition: or.h:4210
struct addr_policy_t addr_policy_t
char * OwningControllerProcess
Definition: or.h:4137
uint64_t MaxMemInQueues_low_threshold
Definition: or.h:3792
config_line_t * ServerTransportListenAddr
Definition: or.h:3849
uint8_t * ed_rsa_crosscert
Definition: or.h:1521
char * nickname
Definition: or.h:1630
common_digests_t digests
Definition: or.h:2749
uint32_t incoming_cmd_cur_len
Definition: or.h:1910
#define MAX_HEX_NICKNAME_LEN
Definition: or.h:127
unsigned int is_running
Definition: or.h:5398
desc_store_t desc_store
Definition: or.h:2829
relay_crypto_t crypto
Definition: or.h:2933
uint16_t dir_port
Definition: or.h:2238
char * AccountingRule_option
Definition: or.h:4111
int StrictNodes
Definition: or.h:3706
int vote_seconds
Definition: or.h:2710
int DirAllowPrivateAddresses
Definition: or.h:3751
int ClientBootstrapConsensusMaxInProgressTries
Definition: or.h:4416
Definition: confline.h:23
int ReducedExitPolicy
Definition: or.h:3731
config_line_t * HashedControlSessionPassword
Definition: or.h:4117
int TestingLinkKeySlop
Definition: or.h:4596
int tls_error
Definition: or.h:1633
struct dir_server_t dir_server_t
struct evdns_server_port * dns_server_port
Definition: or.h:1433
was_router_added_t
Definition: or.h:5481
int AuthDirTestEd25519LinkKeys
Definition: or.h:4638
smartlist_t * declared_family
Definition: or.h:2272
int SocksTimeout
Definition: or.h:3978
char * body
Definition: or.h:2462
char * requested_resource
Definition: or.h:1842
int ExtORPortCookieAuthFileGroupReadable
Definition: or.h:4126
int DirReqStatistics_option
Definition: or.h:4238
struct connection_t connection_t
unsigned int is_possible_guard
Definition: or.h:2539
uint16_t ipv6_orport
Definition: or.h:2357
int ExitPolicyRejectLocalInterfaces
Definition: or.h:3727
dirinfo_type_t type
Definition: or.h:5407
bootstrap_status_t
Definition: or.h:5069
unsigned int unreachable_count
Definition: or.h:5311
routerset_t * TestingDirAuthVoteExit
Definition: or.h:4431
uint16_t HTTPSProxyPort
Definition: or.h:4029
store_type_t type
Definition: or.h:2796
int OfflineMasterKey
Definition: or.h:4602
char * contact_info
Definition: or.h:2274
channel_t * n_chan
Definition: or.h:3064
smartlist_t * testing_cell_stats
Definition: or.h:3183
unsigned int is_bad_exit
Definition: or.h:2541
char * protocol_list
Definition: or.h:2257
unsigned int is_valid
Definition: or.h:2535
char * PidFile
Definition: or.h:3698
#define DIGEST_LEN
Definition: crypto_digest.h:22
time_t last_listed_as_valid_until
Definition: or.h:2179
time_t addr_current_at
Definition: or.h:5409
smartlist_t * routers
Definition: or.h:2822
routerset_t * ExitNodes
Definition: or.h:3700
struct port_cfg_t port_cfg_t
unsigned int received_certs_cell
Definition: or.h:1540
strmap_t * digests
Definition: or.h:2773
int FascistFirewall
Definition: or.h:3934
char * exitsummary
Definition: or.h:2397
smartlist_t * voters
Definition: or.h:2744
int ClientBootstrapConsensusFallbackDownloadInitialDelay
Definition: or.h:4384
unsigned int timed_out
Definition: or.h:5306
int HiddenServiceStatistics_option
Definition: or.h:4260
int marked_for_close_orig_reason
Definition: or.h:3172
unsigned int linked_conn_is_closed
Definition: or.h:1367
uint8_t isolation_flags
Definition: or.h:1249
unsigned int have_sent_protocolinfo
Definition: or.h:1893
extend_info_t * extend_info
Definition: or.h:2946
uint16_t or_port
Definition: or.h:2354
routerstatus_format_type_t
Definition: or.h:5099
uint8_t type
Definition: or.h:3628
char * HTTPProxy
Definition: or.h:4022
unsigned int digest_sent_data
Definition: or.h:1567
size_t annotations_len
Definition: or.h:2150
tor_x509_cert_t * id_cert
Definition: or.h:1511
uint32_t pathbias_probe_nonce
Definition: or.h:3360
Definition: crypto_digest.h:74
unsigned int is_hs_dir
Definition: or.h:2375
int TestingClientDownloadInitialDelay
Definition: or.h:4356
uint16_t dir_port
Definition: or.h:2867
struct protover_summary_flags_t protover_summary_flags_t
uint64_t associated_isolated_stream_global_id
Definition: or.h:3457
time_t expiry_time
Definition: or.h:3009
unsigned int ipv6_preferred
Definition: or.h:2559
routerset_t * ExcludeExitNodesUnion_
Definition: or.h:3718
struct testing_cell_stats_entry_t testing_cell_stats_entry_t
config_line_t * ServerTransportOptions
Definition: or.h:3852
int HiddenServiceSingleHopMode
Definition: or.h:3918
char * GeoIPFile
Definition: or.h:4456
tor_addr_t addr
Definition: or.h:2846
size_t store_len
Definition: or.h:2801
download_want_authority_t
Definition: or.h:2064
ed25519_public_key_t authenticated_ed25519_peer_id
Definition: or.h:1576
char * HTTPProxyAuthenticator
Definition: or.h:4025
Definition: hs_ident.h:93
uint64_t PerConnBWRate
Definition: or.h:4008
config_line_t * Bridges
Definition: or.h:3840
int CircuitBuildTimeout
Definition: or.h:3984
extend_info_t * chosen_exit
Definition: or.h:2990
time_t last_listed
Definition: or.h:2442
char * Socks5ProxyPassword
Definition: or.h:4040
struct tor_cert_st * ed_sign_auth
Definition: or.h:1519
unsigned int received_destroy
Definition: or.h:3105
routerset_t * TestingDirAuthVoteHSDir
Definition: or.h:4441
size_t bodylen
Definition: or.h:2464
int ClientPreferIPv6DirPort
Definition: or.h:4295
char * ContactInfo
Definition: or.h:4015
crypto_pk_t * onion_pkey
Definition: or.h:2471
char * CookieAuthFile
Definition: or.h:4121
int ReducedConnectionPadding
Definition: or.h:3866
crypto_pk_t * onion_pkey
Definition: or.h:2247
Definition: crypto_ed25519.h:23
int ServerDNSDetectHijacking
Definition: or.h:4203
char * DebugLogFile
Definition: or.h:3680
smartlist_t * net_params
Definition: or.h:2735
int TestingServerDownloadInitialDelay
Definition: or.h:4352
uint32_t n_written_conn_bw
Definition: or.h:1424
unsigned int purpose
Definition: or.h:1332
uint32_t magic
Definition: or.h:3060
struct digest_sd_map_t * desc_by_eid_map
Definition: or.h:2820
smartlist_t * known_flags
Definition: or.h:2731
unsigned int removed
Definition: or.h:3032
uint8_t passwordlen
Definition: or.h:4835
int EnforceDistinctSubnets
Definition: or.h:4225
circid_t circ_id
Definition: or.h:1189
unsigned int has_accepted_serverdesc
Definition: or.h:5404
char * desc_str
Definition: or.h:5258
extend_info_t * n_hop
Definition: or.h:3088
unsigned int has_ed25519_listing
Definition: or.h:2605
char * signature
Definition: or.h:2626
uint32_t build_time_t
Definition: or.h:4870
int deliver_window
Definition: or.h:3118
int ServerDNSAllowBrokenConfig
Definition: or.h:4218
time_t LastRotatedOnionKey
Definition: or.h:4777
char * password
Definition: or.h:4842
int TrackHostExitsExpire
Definition: or.h:3964
pk_op_t
Definition: or.h:5238
char * ControlPortWriteToFile
Definition: or.h:4493
int ClientUseIPv4
Definition: or.h:4280
int package_window
Definition: or.h:1692
config_line_t * ExtORPort_lines
Definition: or.h:3757
int socket_family
Definition: or.h:1391
unsigned int dirconn_direct
Definition: or.h:1843
#define DOWNCAST(to, ptr)
Definition: or.h:121
time_t valid_until
Definition: or.h:2697
unsigned int listed_in_last_desc
Definition: or.h:5315
uint8_t listener_type
Definition: or.h:4812
int failure_count
Definition: or.h:3007
int TestingBridgeBootstrapDownloadInitialDelay
Definition: or.h:4402
tor_addr_t addr
Definition: or.h:3625
int PathBiasUseThreshold
Definition: or.h:4561
struct rend_encoded_v2_service_descriptor_t rend_encoded_v2_service_descriptor_t
int AllowNonRFC953Hostnames
Definition: or.h:4227
int ExitPortStatistics
Definition: or.h:4244
unsigned int socks_iso_keep_alive
Definition: or.h:1258
int conn_array_index
Definition: or.h:1375
int SSLKeyLifetime
Definition: or.h:4574
uint64_t MaxMemInQueues
Definition: or.h:3789
unsigned int refcount
Definition: or.h:2975
struct authority_cert_t authority_cert_t
char * protocols
Definition: or.h:2600
struct edge_connection_t * next_stream
Definition: or.h:1690
struct ns_detached_signatures_t ns_detached_signatures_t
uint8_t state
Definition: or.h:3107
smartlist_t * package_lines
Definition: or.h:2706
unsigned int is_canonical
Definition: or.h:1997
struct extend_info_t extend_info_t
uint8_t purpose
Definition: or.h:3108
unsigned int chosen_exit_optional
Definition: or.h:1813
unsigned int supports_v3_hsdir
Definition: or.h:2223
struct digest_ei_map_t * extra_info_map
Definition: or.h:2816
int FetchServerDescriptors
Definition: or.h:3881
struct or_circuit_t or_circuit_t
config_line_t * OutboundBindAddressExit
Definition: or.h:3739
tor_addr_t ipv6_addr
Definition: or.h:5388
uint32_t incoming_cmd_len
Definition: or.h:1908
unsigned int write_blocked_on_bw
Definition: or.h:1339
uint32_t n_written
Definition: or.h:1726
circuit_status_event_t
Definition: or.h:5001
config_line_t * RecommendedVersions
Definition: or.h:3746
setopt_err_t
Definition: or.h:4963
time_t published
Definition: or.h:2023
unsigned int allow_single_hop_exits
Definition: or.h:2279
int deliver_window
Definition: or.h:2965
char * Socks5ProxyUsername
Definition: or.h:4039
uint64_t RelayBandwidthRate
Definition: or.h:4004
struct tor_version_t tor_version_t
unsigned int is_fast
Definition: or.h:2361
int AuthDirPinKeys
Definition: or.h:4091
int ControlSocketsGroupWritable
Definition: or.h:3780
uint16_t prt_min
Definition: or.h:2012
int DoSRefuseSingleHopClientRendezvous
Definition: or.h:4702
struct signed_descriptor_t signed_descriptor_t
unsigned int streams_blocked_on_n_chan
Definition: or.h:3092
char * dir_compressed
Definition: or.h:2020
config_line_t * ReachableORAddresses
Definition: or.h:3938
dirinfo_type_t PublishServerDescriptor_
Definition: or.h:3878
Definition: token_bucket.h:59
#define MAX_NICKNAME_LEN
Definition: or.h:124
int ExtraInfoStatistics
Definition: or.h:4267
int MaxClientCircuitsPending
Definition: or.h:4500
int accepted_introduce2_count
Definition: or.h:5325
unsigned int is_stable
Definition: or.h:2360
unsigned int num_circuits_launched
Definition: or.h:1802
time_t time_to_expire
Definition: or.h:5341
config_line_t * EntryGuards
Definition: or.h:4729
char * Socks4Proxy
Definition: or.h:4032
struct circuit_t circuit_t
unsigned int is_named
Definition: or.h:2367
uint32_t n_delivered_read_circ_bw
Definition: or.h:3276
unsigned int is_unnamed
Definition: or.h:2368
int ConnDirectionStatistics
Definition: or.h:4247
Header file for replaycache.c.
time_t next_write
Definition: or.h:4713
crypt_path_t * cpath
Definition: or.h:3302
#define tor_assert(expr)
Definition: util_bug.h:68
time_t LastWritten
Definition: or.h:4716
struct crypt_path_t * prev
Definition: or.h:2960
tor_x509_cert_t * link_cert
Definition: or.h:1508
digestmap_t * desc_digest_map
Definition: or.h:2761
int DoSCircuitCreationRate
Definition: or.h:4681
int TestingBridgeDownloadInitialDelay
Definition: or.h:4398
routerstatus_t status
Definition: or.h:2591
unsigned int active_on_link
Definition: or.h:1364
int LogMessageDomains
Definition: or.h:3673
struct var_cell_t var_cell_t
smartlist_t * LongLivedPorts
Definition: or.h:3952
crypt_path_t * cpath
Definition: or.h:2978
uint8_t n_download_attempts
Definition: or.h:2112
int package_window
Definition: or.h:2963
unsigned int in_flushed_some
Definition: or.h:1349
uint32_t n_overhead_read_circ_bw
Definition: or.h:3286
unsigned int supports_extend2_cells
Definition: or.h:2203
char * User
Definition: or.h:3754
common_digests_t digests
Definition: or.h:2024
unsigned int isolation_any_streams_attached
Definition: or.h:3422
uint8_t router_purpose
Definition: or.h:1847
int ServerDNSRandomizeCase
Definition: or.h:4205
unsigned int socks_prefer_no_auth
Definition: or.h:4830
struct origin_circuit_t origin_circuit_t
consensus_flavor_t flavor
Definition: or.h:2689
char * Address
Definition: or.h:3697
relay_crypto_t crypto
Definition: or.h:3506
uint16_t prt_max
Definition: or.h:2013
struct circuit_t * on_circuit
Definition: or.h:1696
unsigned int want_onehop
Definition: or.h:1806
uint32_t n_overhead_written_circ_bw
Definition: or.h:3291
double circuit_build_times_quantile_cutoff(void)
Definition: circuitstats.c:264
unsigned int has_bandwidth
Definition: or.h:2381
addressmap_entry_source_t
Definition: or.h:4974
int AuthDirSharedRandomness
Definition: or.h:4626
unsigned int onehop_tunnel
Definition: or.h:3000
char * nickname
Definition: or.h:2234
int CellStatistics
Definition: or.h:4250
size_t dir_compressed_len
Definition: or.h:2022
tor_addr_t Socks5ProxyAddr
Definition: or.h:4037
crypto_pk_t * intro_key
Definition: or.h:5298
int vote_delay
Definition: or.h:5131
int MaxCircuitDirtiness
Definition: or.h:3996
crypto_dh_t * rend_dh_handshake_state
Definition: or.h:2940
uint8_t command
Definition: or.h:1187
config_line_t * ExitPolicy
Definition: or.h:3723
unsigned int proxy_state
Definition: or.h:1370
long uptime
Definition: or.h:2271
uint16_t marked_for_close
Definition: or.h:3160
unsigned int got_auth
Definition: or.h:4826
char * VirtualAddrNetworkIPv6
Definition: or.h:4198
int AvoidDiskWrites
Definition: or.h:3862
struct tor_cert_st * own_link_cert
Definition: or.h:1556
unsigned int chosen_exit_retries
Definition: or.h:1818
config_line_t * ExtraLines
Definition: or.h:4774
int PaddingStatistics
Definition: or.h:4253
Definition: container.h:18
config_line_t * NATDPort_lines
Definition: or.h:3771
unsigned int has_exitsummary
Definition: or.h:2382
int signature_len
Definition: or.h:2628
or_handshake_certs_t * certs
Definition: or.h:1590
config_line_t * DirPolicy
Definition: or.h:3733
int SafeSocks
Definition: or.h:4151
int ProtocolWarnings
Definition: or.h:4153
uint32_t bandwidthrate
Definition: or.h:2261
dirinfo_type_t
Definition: or.h:2879
circuit_status_minor_event_t
Definition: or.h:5011
int32_t circuit_build_times_initial_timeout(void)
Definition: circuitstats.c:367
int last_delay_used
Definition: or.h:2131
Header file to define uint32_t and friends.
circuitmux_t * p_mux
Definition: or.h:3497
int KeepalivePeriod
Definition: or.h:3976
digest_algorithm_t alg
Definition: or.h:2624
smartlist_t * Schedulers
Definition: or.h:4663
struct create_cell_t * n_chan_create_cell
Definition: or.h:3124
routerset_t * Tor2webRendezvousPoints
Definition: or.h:3897
unsigned int use_cached_ipv4_answers
Definition: or.h:1278
unsigned int policy_is_reject_star
Definition: or.h:2284
char * incoming_cmd
Definition: or.h:1913
double DirAuthorityFallbackRate
Definition: or.h:4054
replaycache_t * accepted_intro_rsa_parts
Definition: or.h:5320
int16_t country_t
Definition: or.h:2192
int UseEntryGuards
Definition: or.h:4171
int ServerDNSSearchDomains
Definition: or.h:4200
int DisableNetwork
Definition: or.h:4508
int Sandbox
Definition: or.h:4150
crypto_pk_t * pk
Definition: or.h:5360
stream_status_event_t
Definition: or.h:5018
Definition: shared_random.h:60
uint16_t dir_port
Definition: or.h:5390
int TestingV3AuthInitialDistDelay
Definition: or.h:4334
int max_introductions
Definition: or.h:5331
unsigned int is_exit
Definition: or.h:2540
Definition: hs_ident.h:42
path_state_t
Definition: or.h:3212
struct or_handshake_state_t or_handshake_state_t
int ExitRelay
Definition: or.h:4584
double KISTSockBufSizeFactor
Definition: or.h:4659
config_line_t * AuthDirReject
Definition: or.h:4070
unsigned int is_exit
Definition: or.h:2359
struct connection_t * linked_conn
Definition: or.h:1413
networkstatus_sr_info_t sr_info
Definition: or.h:2764
const char * description
Definition: or.h:2792
int AuthDirListBadExits
Definition: or.h:4086
uint8_t purpose
Definition: or.h:2322
saved_location_t
Definition: or.h:2032
unsigned int bw_is_unmeasured
Definition: or.h:2383
rend_auth_type_t
Definition: or.h:826
config_line_t * HashedControlPassword
Definition: or.h:4115
int ShutdownWaitLength
Definition: or.h:4141
struct or_circuit_t * rend_splice
Definition: or.h:3510
config_line_t * ReachableDirAddresses
Definition: or.h:3939
Definition: compress.c:459
ed25519_public_key_t ed25519_id
Definition: or.h:2523
routerset_t * HSLayer3Nodes
Definition: or.h:3905
uint8_t maskbits_t
Definition: address.h:51
int nodelist_idx
Definition: or.h:2512
routerset_t * TestingDirAuthVoteGuard
Definition: or.h:4436
int PathBiasCircThreshold
Definition: or.h:4535
cell_direction_t
Definition: or.h:917
int RefuseUnknownExits
Definition: or.h:3948
unsigned int no_save
Definition: or.h:2446
int ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay
Definition: or.h:4394
uint32_t n_read_circ_bw
Definition: or.h:3266
struct extrainfo_t extrainfo_t
uint8_t command
Definition: or.h:4810
int marked_for_close_reason
Definition: or.h:3168
size_t journal_len
Definition: or.h:2799
unsigned int good_signature
Definition: or.h:2631
time_t published_on
Definition: or.h:2345
streamid_t next_stream_id
Definition: or.h:3400
struct packed_cell_t packed_cell_t
int ExtendAllowPrivateAddresses
Definition: or.h:3753
int NumEntryGuards
Definition: or.h:4173
unsigned int remaining_relay_early_cells
Definition: or.h:3322
unsigned int name_lookup_warned
Definition: or.h:2548
uint16_t port
Definition: or.h:4822
#define MAX_RELAY_EARLY_CELLS_PER_CIRCUIT
Definition: or.h:3195
uint64_t ConstrainedSockSize
Definition: or.h:3942
int OwningControllerFD
Definition: or.h:4139
uint32_t processed_cells
Definition: or.h:3528
size_t bytes_dropped
Definition: or.h:2804
onion_handshake_state_t handshake_state
Definition: or.h:2937
int SigningKeyLifetime
Definition: or.h:4587
struct rend_service_authorization_t rend_service_authorization_t
char * contact
Definition: or.h:2647
char * ExtORPortCookieAuthFile
Definition: or.h:4123
unsigned int ed25519_reflects_consensus
Definition: or.h:2609
int session_group
Definition: or.h:1250
int port
Definition: or.h:3626
struct tor_cert_st * ed_sign_link
Definition: or.h:1516
struct event * read_event
Definition: or.h:1377
config_line_t * AlternateDirAuthority
Definition: or.h:4058
int ExitPolicyRejectPrivate
Definition: or.h:3724
struct buf_t * pending_optimistic_data
Definition: or.h:1780
smartlist_t * FirewallPorts
Definition: or.h:3935
uint8_t command
Definition: or.h:3026
unsigned int isolation_values_set
Definition: or.h:3416
config_line_t * NodeFamilies
Definition: or.h:4065
char * AndroidIdentityTag
Definition: or.h:3678
size_t dir_len
Definition: or.h:2021
uint8_t pathbias_shouldcount
Definition: or.h:3349
config_line_t * AddressMap
Definition: or.h:3966
uint8_t num_socks_retries
Definition: or.h:1775
unsigned int edge_blocked_on_circ
Definition: or.h:1739
int TestingAuthKeySlop
Definition: or.h:4598
char * ConsensusParams
Definition: or.h:4318
unsigned int in_connection_handle_write
Definition: or.h:1352
uint8_t isolation_flags_mixed
Definition: or.h:3427
int DoSConnectionEnabled
Definition: or.h:4694
config_line_t * HidServRevCounter
Definition: or.h:4737
streamid_t pathbias_probe_id
Definition: or.h:3356
int UseGuardFraction
Definition: or.h:4178
desc_store_t extrainfo_store
Definition: or.h:2831
time_t expires
Definition: or.h:2863
int TestingAuthKeyLifetime
Definition: or.h:4591
int global_origin_circuit_list_idx
Definition: or.h:3318
int all_uploads_performed
Definition: or.h:5370
unsigned int read_blocked_on_bw
Definition: or.h:1337
unsigned int is_bad_exit
Definition: or.h:2373
ed25519_public_key_t ed_identity
Definition: or.h:2844
uint32_t n_delivered_written_circ_bw
Definition: or.h:3281
int relay_early_cells_sent
Definition: or.h:3396
uint64_t BandwidthRate
Definition: or.h:3998
config_line_t * FallbackDir
Definition: or.h:4048
unsigned int is_outgoing
Definition: or.h:1653
char * address
Definition: or.h:1406
int circuit_idle_timeout
Definition: or.h:3468
int FetchHidServDescriptors
Definition: or.h:3882
int vote_interval
Definition: or.h:5127
char * KeyDirectory_option
Definition: or.h:3686
int DisablePredictedCircuits
Definition: or.h:4131
int CookieAuthentication
Definition: or.h:4119
struct crypt_path_t * cpath_layer
Definition: or.h:1701
unsigned int has_measured_bws
Definition: or.h:2690
struct entry_connection_t entry_connection_t
int ReloadTorrcOnSIGHUP
Definition: or.h:4466
int HeartbeatPeriod
Definition: or.h:4017
protover_summary_flags_t pv
Definition: or.h:2300
smartlist_t * ServerDNSTestAddresses
Definition: or.h:4222
token_bucket_rw_t bucket
Definition: or.h:1675
struct buf_t * outbuf
Definition: or.h:1380
char * BridgePassword_AuthDigest_
Definition: or.h:3837
config_line_t * OutboundBindAddress
Definition: or.h:3735
int MinUptimeHidServDirectoryV2
Definition: or.h:3884
cell_queue_t p_chan_cells
Definition: or.h:3490
store_type_t
Definition: or.h:2779
routerset_t * HSLayer2Nodes
Definition: or.h:3901
unsigned int supports_ed25519_hs_intro
Definition: or.h:2218
int BridgeRelay
Definition: or.h:3854
time_t sent_versions_at
Definition: or.h:1532
uint16_t or_port
Definition: or.h:5391
config_line_t * Logs
Definition: or.h:3669
int ConnectionPadding
Definition: or.h:3872
unsigned int circuit_carries_hs_traffic_stats
Definition: or.h:3524
struct control_connection_t control_connection_t
int dist_seconds
Definition: or.h:2713
uint64_t AuthDirFastGuarantee
Definition: or.h:4095
tor_addr_t Socks4ProxyAddr
Definition: or.h:4033
tor_socket_t s
Definition: or.h:1374
unsigned int supports_ed25519_link_handshake_any
Definition: or.h:2213
time_t BWHistoryReadEnds
Definition: or.h:4747
unsigned int is_possible_guard
Definition: or.h:2371
#define ORIGIN_CIRCUIT_MAGIC
Definition: or.h:3013
signed_descriptor_t cache_info
Definition: or.h:2855
channel_tls_t * chan
Definition: or.h:1638
uint32_t measured_bw_kb
Definition: or.h:2610
int AuthoritativeDir
Definition: or.h:3819
config_line_t * AuthDirInvalid
Definition: or.h:4072
Definition: microdesc.c:29
unsigned int is_hibernating
Definition: or.h:2275
int UpdateBridgesFromAuthority
Definition: or.h:3860
int UseDefaultFallbackDirs
Definition: or.h:4050
struct or_connection_t or_connection_t
unsigned int protocols_known
Definition: or.h:2199
uint32_t inserted_timestamp
Definition: or.h:1208
char * SafeLogging
Definition: or.h:4143
tor_addr_t ipv6_addr
Definition: or.h:2477
int GeoIPExcludeUnknown
Definition: or.h:4462
unsigned int is_hs_dir
Definition: or.h:2543
int n
Definition: or.h:1233
smartlist_t * family
Definition: or.h:2481
uint64_t event_mask
Definition: or.h:1888
unsigned int socks_prefer_no_auth
Definition: or.h:1256
unsigned int n_delete_pending
Definition: or.h:3102
int global_circuitlist_idx
Definition: or.h:3178
uint64_t MaxAdvertisedBandwidth
Definition: or.h:4002
struct buf_t * inbuf
Definition: or.h:1379
config_line_t * OutboundBindAddressOR
Definition: or.h:3737
uint32_t global_identifier
Definition: or.h:3409
download_status_t ei_dl_status
Definition: or.h:2168
int RunAsDaemon
Definition: or.h:3933
uint16_t streamid_t
Definition: or.h:1032
unsigned int need_capacity
Definition: or.h:2994
circid_t circ_id
Definition: or.h:1178
int DirReqStatistics
Definition: or.h:4241
int ConnLimit_low_thresh
Definition: or.h:3931
char * SyslogIdentityTag
Definition: or.h:3677
config_line_t * ReachableAddresses
Definition: or.h:3937
protover_summary_flags_t pv
Definition: or.h:2387
time_t next_attempt_at
Definition: or.h:2108
int ConnLimit
Definition: or.h:3927
int TestingClientMaxIntervalWithoutRequest
Definition: or.h:4407
int DisableSignalHandlers
Definition: or.h:4673
uint16_t dir_port
Definition: or.h:2645
int refcnt
Definition: or.h:2027
unsigned int circuit_retries
Definition: or.h:5348
config_line_t * DirPort_lines
Definition: or.h:3783
saved_location_t saved_location
Definition: or.h:2170
circid_t p_circ_id
Definition: or.h:3488
tor_addr_t ipv6_addr
Definition: or.h:2356
int RendPostPeriod
Definition: or.h:3974
int LogTimeGranularity
Definition: or.h:3671
int ExtendByEd25519ID
Definition: or.h:4633
int FetchDirInfoExtraEarly
Definition: or.h:4190
unsigned int tracked_for_dos_mitigation
Definition: or.h:1662
uint32_t bandwidthcapacity
Definition: or.h:2265
unsigned int streams_blocked_on_p_chan
Definition: or.h:3095
int TestingLinkCertLifetime
Definition: or.h:4589
Definition: compat_time.h:33
char * VirtualAddrNetworkIPv4
Definition: or.h:4196
char rend_circ_nonce[DIGEST_LEN]
Definition: or.h:3513
int VersioningAuthoritativeDir
Definition: or.h:3822
int ClientUseIPv6
Definition: or.h:4285
char * recommended_relay_protocols
Definition: or.h:2724
struct digest_ri_map_t * identity_map
Definition: or.h:2810
uint16_t payload_len
Definition: or.h:1191
uint32_t n_written_circ_bw
Definition: or.h:3271
uint32_t bandwidthburst
Definition: or.h:2263
unsigned int has_guardfraction
Definition: or.h:2393
time_t timestamp_lastempty
Definition: or.h:1673
smartlist_t * WarnPlaintextPorts
Definition: or.h:3961
char * Socks5Proxy
Definition: or.h:4036
struct routerstatus_t routerstatus_t
circ_id_type_t
Definition: or.h:186
int ConnLimit_high_thresh
Definition: or.h:3929
#define DIGEST256_LEN
Definition: crypto_digest.h:25
int Tor2webMode
Definition: or.h:3894
off_t off
Definition: or.h:2454
config_line_t * ControlPort_lines
Definition: or.h:3775
char * safecookie_client_hash
Definition: or.h:1905
unsigned int received_versions
Definition: or.h:1536
outbound_addr_t
Definition: or.h:3652
struct rend_data_t rend_data_t
unsigned int prefer_ipv6_virtaddr
Definition: or.h:1283
struct short_policy_t * ipv6_exit_policy
Definition: or.h:2270
int DoSCircuitCreationMinConnections
Definition: or.h:4679
uint16_t Socks4ProxyPort
Definition: or.h:4034
int LeaveStreamsUnattached
Definition: or.h:4128
int FetchDirInfoEarly
Definition: or.h:4187
struct microdesc_t microdesc_t
rend_data_t * rend_data
Definition: or.h:1856
int TestingV3AuthInitialVoteDelay
Definition: or.h:4330
uint16_t end_reason
Definition: or.h:1720
int nr_streams
Definition: or.h:854
unsigned int is_running
Definition: or.h:2533
vote_microdesc_hash_t * microdesc
Definition: or.h:2612
int DirCache
Definition: or.h:4192
int AuthDirHasIPv6Connectivity
Definition: or.h:4090
int NewCircuitPeriod
Definition: or.h:3994
#define CELL_MAX_NETWORK_SIZE
Definition: or.h:1001
struct rend_intro_point_t rend_intro_point_t
time_t timestamp_created
Definition: or.h:1389
int TestingClientConsensusDownloadInitialDelay
Definition: or.h:4364
config_line_t * AuthDirBadExit
Definition: or.h:4068
struct desc_store_t desc_store_t
struct vote_microdesc_hash_t vote_microdesc_hash_t
config_line_t * Guard
Definition: or.h:4732
smartlist_t * NodeFamilySets
Definition: or.h:4067
smartlist_t * intro_nodes
Definition: or.h:5368
Header file for hs_circuitmap.c.
uint32_t address_ttl
Definition: or.h:1711
unsigned int supports_v3_rendezvous_point
Definition: or.h:2228
uint16_t marked_for_close
Definition: or.h:1400
struct circuit_guard_state_t * guard_state
Definition: or.h:1865
unsigned int needs_retest_if_added
Definition: or.h:2288
struct tor_cert_st * ed_id_sign
Definition: or.h:1513
config_line_t * DNSPort_lines
Definition: or.h:3784
struct short_policy_t short_policy_t
char * client_versions
Definition: or.h:2717
#define VAR_CELL_MAX_HEADER_SIZE
Definition: or.h:1004
time_t timestamp
Definition: or.h:5362
int RephistTrackTime
Definition: or.h:4184
smartlist_t * PublishServerDescriptor
Definition: or.h:3876
uint32_t n_read
Definition: or.h:1723
struct listener_connection_t listener_connection_t
tor_addr_t real_addr
Definition: or.h:1640
int AutomapHostsOnResolve
Definition: or.h:3967
unsigned int have_noted_bootstrap_problem
Definition: or.h:1658
time_t cert_expiration_time
Definition: or.h:2253
#define REND_NUMBER_OF_NON_CONSECUTIVE_REPLICAS
Definition: or.h:772
struct rend_authorized_client_t rend_authorized_client_t
uint32_t inserted_timestamp
Definition: or.h:1224
int UsingTestNetworkDefaults_
Definition: or.h:4486
uint16_t idle_timeout
Definition: or.h:1666
char * TransProxyType
Definition: or.h:3762
int version
Definition: or.h:5361
struct onion_queue_t * onionqueue_entry
Definition: or.h:3481
crypto_pk_t * signing_key
Definition: or.h:2859
unsigned int is_authority
Definition: or.h:5399
uint32_t n_read_conn_bw
Definition: or.h:1420
int TestingEstimatedDescriptorPropagationTime
Definition: or.h:4348
unsigned int edge_has_sent_end
Definition: or.h:1733
char * original_dest_address
Definition: or.h:1766
uint64_t AccountingMax
Definition: or.h:4103
int after_firsthop_idx
Definition: or.h:4955
int TestingServerConsensusDownloadInitialDelay
Definition: or.h:4360
uint8_t command
Definition: or.h:1179
int DoSCircuitCreationDefenseType
Definition: or.h:4687
unsigned int bad_signature
Definition: or.h:2629
smartlist_t * hsdirs_fp
Definition: or.h:848
char * ext_or_auth_correct_client_hash
Definition: or.h:1624
unsigned int type
Definition: or.h:1331
int DisableAllSwap
Definition: or.h:3720
config_line_t * MyFamily
Definition: or.h:4064
unsigned int is_private
Definition: or.h:1995
char * BridgeDistribution
Definition: or.h:3830
config_line_t * MyFamily_lines
Definition: or.h:4063
int ConstrainedSockets
Definition: or.h:3941
unsigned int relaxed_timeout
Definition: or.h:3380
struct destroy_cell_queue_t destroy_cell_queue_t
char * platform
Definition: or.h:2255
unsigned int remaining_relay_early_cells
Definition: or.h:3517
uint32_t age_tmp
Definition: or.h:3121
int TestingAuthDirTimeToLearnReachability
Definition: or.h:4343
int NumCPUs
Definition: or.h:4010
int n_intervals_valid
Definition: or.h:5129
char * TorVersion
Definition: or.h:4770
unsigned int omit_from_vote
Definition: or.h:2297
buildtimeout_set_event_t
Definition: or.h:5041
int CacheDirectoryGroupReadable
Definition: or.h:3694
unsigned int circuit_established
Definition: or.h:5352
Definition: channel.h:326
int DisableOOSCheck
Definition: or.h:4629
uint64_t global_identifier
Definition: or.h:1416
char * chosen_exit_name
Definition: or.h:1755
char * Nickname
Definition: or.h:3696
char * address
Definition: or.h:2643
int ControlPortFileGroupReadable
Definition: or.h:4495
struct vote_routerstatus_t vote_routerstatus_t
#define REND_SERVICE_ID_LEN_BASE32
Definition: or.h:755
unsigned int is_accept
Definition: or.h:2418
rend_data_t * rend_data
Definition: or.h:1704
unsigned int caches_extra_info
Definition: or.h:2277
edge_connection_t * n_streams
Definition: or.h:3499
unsigned int hs_circ_has_timed_out
Definition: or.h:3376
uint64_t PerConnBWBurst
Definition: or.h:4009
download_schedule_t
Definition: or.h:2052
config_line_t * RendConfigLines
Definition: or.h:4011
Definition: onion_fast.h:18
config_line_t * SocksPolicy
Definition: or.h:3732
int ServerDNSAllowNonRFC953Hostnames
Definition: or.h:4230
struct document_signature_t document_signature_t
char * CacheDirectory_option
Definition: or.h:3691
smartlist_t * supported_methods
Definition: or.h:2703
channel_t * p_chan
Definition: or.h:3492
int package_window
Definition: or.h:3113
Definition: crypto_curve25519.h:24
char * AccelName
Definition: or.h:4161
#define CELL_PAYLOAD_SIZE
Definition: or.h:998
int routerlist_index
Definition: or.h:2176
int TestingDirConnectionMaxStall
Definition: or.h:4411
time_t published_on
Definition: or.h:2159
time_t timestamp_last_read_allowed
Definition: or.h:1384
uint32_t magic
Definition: or.h:1327
uint8_t socks_version
Definition: or.h:4804
int V3AuthVoteDelay
Definition: or.h:4300
config_line_t * BuildtimeHistogram
Definition: or.h:4765
routerset_t * EntryNodes
Definition: or.h:3703
uint16_t link_proto
Definition: or.h:1664
const char * marked_for_close_file
Definition: or.h:1404
bandwidth_weight_rule_t
Definition: or.h:5456
Definition: workqueue.c:93
config_line_t * HTTPTunnelPort_lines
Definition: or.h:3774
size_t ed_rsa_crosscert_len
Definition: or.h:1523
size_t signed_descriptor_len
Definition: or.h:2152
int BridgeAuthoritativeDir
Definition: or.h:3825
tor_mmap_t * mmap
Definition: or.h:2794
int TestingV3AuthInitialVotingInterval
Definition: or.h:4326
crypto_pk_t * onion_key
Definition: or.h:2847
crypt_path_t * pending_final_cpath
Definition: or.h:3002
const char * fname_base
Definition: or.h:2790
addr_policy_result_t
Definition: or.h:5221
uint32_t guardfraction_percentage
Definition: or.h:2395
struct dir_connection_t dir_connection_t
smartlist_t * successful_uploads
Definition: or.h:5375
uint64_t dirreq_id
Definition: or.h:3175
time_t last_dir_503_at
Definition: or.h:2403
size_t outbuf_flushlen
Definition: or.h:1382
crypto_cipher_t * f_crypto
Definition: or.h:2914
int DisableDebuggerAttachment
Definition: or.h:4214
uint16_t port
Definition: or.h:1397
smartlist_t * old_routers
Definition: or.h:2825
char * signed_descriptor_body
Definition: or.h:2148
int DoSCircuitCreationEnabled
Definition: or.h:4676
int UseEntryGuards_option
Definition: or.h:4166
smartlist_t * routerstatus_list
Definition: or.h:2757
config_line_t * DirAuthorities
Definition: or.h:4045
#define OR_CIRCUIT_MAGIC
Definition: or.h:3015
int IncludeUsed
Definition: or.h:4641
uint64_t dirreq_id
Definition: or.h:1873
struct authority_cert_t * cert
Definition: or.h:2746
cpath_build_state_t * build_state
Definition: or.h:3296
struct download_status_t download_status_t
short_policy_t * ipv6_exit_policy
Definition: or.h:2485
unsigned int held_by_nodes
Definition: or.h:2450
int MaxConsensusAgeForDiffs
Definition: or.h:4646
unsigned int cache_ipv4_answers
Definition: or.h:1271
uint8_t last_backoff_position
Definition: or.h:2127
maskbits_t maskbits
Definition: or.h:2000
int ClientRejectInternalAddresses
Definition: or.h:4276
edge_connection_t * resolving_streams
Definition: or.h:3502
int DoSCircuitCreationDefenseTimePeriod
Definition: or.h:4691
rend_data_t * rend_data
Definition: or.h:3305
consensus_flavor_t
Definition: or.h:2677
uint16_t ipv6_orport
Definition: or.h:5392
char * AccountingStart
Definition: or.h:4101
int DataDirectoryGroupReadable
Definition: or.h:3684
strmap_t * signatures
Definition: or.h:2774
int LearnCircuitBuildTimeout
Definition: or.h:3980
int nonlive_timeouts
Definition: or.h:4948
struct short_policy_entry_t short_policy_entry_t
uint16_t or_port
Definition: or.h:2646
uint32_t circid_t
Definition: or.h:1030
uint64_t RelayBandwidthBurst
Definition: or.h:4006
int TestingEnableCellStatsEvent
Definition: or.h:4448
unsigned int supports_ed25519_link_handshake_compat
Definition: or.h:2208
smartlist_t * exit_policy
Definition: or.h:2266
Definition: crypto_rsa.c:41
dirreq_type_t
Definition: or.h:5169
uint16_t dir_port
Definition: or.h:2355
country_t country
Definition: or.h:2563
uint8_t auth_type
Definition: or.h:4808
unsigned int proxy_type
Definition: or.h:1654
uint32_t bandwidth_kb
Definition: or.h:2389
int refcnt
Definition: or.h:1992
circuitmux_t * n_mux
Definition: or.h:3079
char * DataDirectory_option
Definition: or.h:3681
uint32_t addr
Definition: or.h:5389
config_line_t * ControlSocket
Definition: or.h:3777
int V3AuthNIntervalsValid
Definition: or.h:4304
uint64_t BandwidthBurst
Definition: or.h:4000
unsigned int inbuf_reached_eof
Definition: or.h:1345
int TestSocks
Definition: or.h:4155
struct edge_connection_t edge_connection_t
int KISTSchedRunInterval
Definition: or.h:4656
time_t valid_after
Definition: or.h:2694
routerset_t * ExcludeExitNodes
Definition: or.h:3713
uint8_t n_download_failures
Definition: or.h:2110
struct event * write_event
Definition: or.h:1378
smartlist_t * weight_params
Definition: or.h:2739
unsigned int hold_open_until_flushed
Definition: or.h:1342
edge_connection_t * p_streams
Definition: or.h:3261
crypt_path_reference_t * service_pending_final_cpath_ref
Definition: or.h:3005
unsigned int held_in_map
Definition: or.h:2448
struct cell_queue_t cell_queue_t
char * AccelDir
Definition: or.h:4162
crypto_pk_t * identity_key
Definition: or.h:2857
tor_addr_t HTTPSProxyAddr
Definition: or.h:4028
int dist_delay
Definition: or.h:5133
struct circuit_guard_state_t * guard_state
Definition: or.h:3314
char * GuardfractionFile
Definition: or.h:4314
short_policy_t * exit_policy
Definition: or.h:2483
tor_addr_t ipv6_addr
Definition: or.h:2244
int TestingV3AuthVotingStartOffset
Definition: or.h:4338
unsigned int started_here
Definition: or.h:1534
time_t timestamp_dirty
Definition: or.h:3158
int consensus_method
Definition: or.h:2701
tor_compress_state_t * compress_state
Definition: or.h:1853
unsigned int use_begindir
Definition: or.h:1809
router_crn_flags_t
Definition: or.h:5463
int started_here
Definition: or.h:1502
int BridgeRecordUsageByCountry
Definition: or.h:4453
struct crypt_path_t crypt_path_t
char * CacheDirectory
Definition: or.h:3693
int ClientBootstrapConsensusAuthorityDownloadInitialDelay
Definition: or.h:4374
char * HTTPSProxyAuthenticator
Definition: or.h:4030
int UnixSocksGroupWritable
Definition: or.h:3781
Definition: circuitmux.c:105
char * BridgePassword
Definition: or.h:3834
int UseBridges
Definition: or.h:3839
uint16_t or_port
Definition: or.h:2237
geoip_ns_response_t
Definition: or.h:5150
unsigned protocols
Definition: or.h:5365
unsigned int may_use_optimistic_data
Definition: or.h:1828
char * version
Definition: or.h:2598
unsigned int p_delete_pending
Definition: or.h:3099
char * V3BandwidthsFile
Definition: or.h:4311
unsigned int reading_from_linked_conn
Definition: or.h:1359
struct tor_cert_st * signing_key_cert
Definition: or.h:2165
int GuardLifetime
Definition: or.h:4577
unsigned nym_epoch
Definition: or.h:1763
int PublishHidServDescriptors
Definition: or.h:3880
struct ext_or_cmd_t ext_or_cmd_t
circid_t n_circ_id
Definition: or.h:3073
unsigned int received_auth_challenge
Definition: or.h:1538
int ClientOnly
Definition: or.h:3864
size_t usernamelen
Definition: or.h:4833
int NumDirectoryGuards
Definition: or.h:4180
unsigned int is_dns_request
Definition: or.h:1729
struct evdns_server_request * dns_server_request
Definition: or.h:1788
unsigned int has_finished
Definition: or.h:4823
int DoSConnectionMaxConcurrentCount
Definition: or.h:4696
struct vote_timing_t vote_timing_t
unsigned int linked
Definition: or.h:1356
smartlist_t * sigs
Definition: or.h:2652
config_line_t * ServerTransportPlugin
Definition: or.h:3845
config_line_t * TransPort_lines
Definition: or.h:3761
struct networkstatus_voter_info_t networkstatus_voter_info_t
unsigned int is_owning_control_connection
Definition: or.h:1896
int deliver_window
Definition: or.h:1694
crypto_digest_t * f_digest
Definition: or.h:2920
tor_addr_t addr
Definition: or.h:1393
uint32_t addr
Definition: or.h:2236
routerstatus_t fake_status
Definition: or.h:5412
hs_token_t * hs_token
Definition: or.h:3187
char * ext_or_conn_id
Definition: or.h:1618
#define SUBTYPE_P(p, subtype, basemember)
Definition: util.h:154
int num_recent_circs
Definition: or.h:4953
int V3AuthVotingInterval
Definition: or.h:4298
time_t fresh_until
Definition: or.h:2695
char * ServerDNSResolvConfFile
Definition: or.h:4207
smartlist_t * FilesOpenedByIncludes
Definition: or.h:4668
char * DataDirectory
Definition: or.h:3683
char * KeyDirectory
Definition: or.h:3688
struct crypt_path_t * next
Definition: or.h:2957
config_line_t * ORPort_lines
Definition: or.h:3755
struct workqueue_entry_s * workqueue_entry
Definition: or.h:3485
time_t AccountingIntervalStart
Definition: or.h:4719
struct digest_sd_map_t * desc_digest_map
Definition: or.h:2813
unsigned int writing_to_linked_conn
Definition: or.h:1361
int NumPrimaryGuards
Definition: or.h:4182
uint16_t len
Definition: or.h:1199
struct or_handshake_certs_t or_handshake_certs_t
int TestingEnableConnBwEvent
Definition: or.h:4445
int HiddenServiceStatistics
Definition: or.h:4264
uint64_t dirreq_id
Definition: or.h:1744
int IPv6Exit
Definition: or.h:4567
int CircuitStreamTimeout
Definition: or.h:3989
uint64_t total_cell_waiting_time
Definition: or.h:3533
int AssumeReachable
Definition: or.h:3818
struct cached_dir_t cached_dir_t
crypto_digest_t * b_digest
Definition: or.h:2922
int ClientPreferIPv6ORPort
Definition: or.h:4290
char * dir
Definition: or.h:2019
uint64_t AuthDirGuardBWGuarantee
Definition: or.h:4099
#define REND_COOKIE_LEN
Definition: or.h:823
uint32_t addr
Definition: or.h:2353
int DoSConnectionDefenseType
Definition: or.h:4699
struct destroy_cell_t destroy_cell_t
struct vote_microdesc_hash_t * next
Definition: or.h:2583
unsigned int is_transparent_ap
Definition: or.h:1822
unsigned int is_reverse_dns_lookup
Definition: or.h:1731
off_t saved_offset
Definition: or.h:2173
#define REND_SERVICE_ADDRESS_LEN
Definition: or.h:758
time_t time_published
Definition: or.h:5336
smartlist_t * spool
Definition: or.h:1851
int DownloadExtraInfo
Definition: or.h:4234
extend_info_t * extend_info
Definition: or.h:5296
char * ext_or_transport
Definition: or.h:1628
unsigned int is_authority
Definition: or.h:2358
int UseMicrodescriptors
Definition: or.h:4490
char * command_arg
Definition: or.h:3667
int V3AuthoritativeDir
Definition: or.h:3820
geoip_client_action_t
Definition: or.h:5142
int HardwareAccel
Definition: or.h:4157
uint16_t ipv6_orport
Definition: or.h:2479
unsigned int exitward
Definition: or.h:3033
networkstatus_type_t type
Definition: or.h:2688
unsigned int is_valid
Definition: or.h:2370
char * address
Definition: or.h:5385
cell_queue_t n_chan_cells
Definition: or.h:3082
size_t replylen
Definition: or.h:4813
struct hs_ident_circuit_t * hs_ident
Definition: or.h:3309
unsigned int wants_to_be_hs_dir
Definition: or.h:2282
smartlist_t * ephemeral_onion_services
Definition: or.h:1899
int CountPrivateBandwidth
Definition: or.h:4221
tor_addr_t HTTPProxyAddr
Definition: or.h:4023
int AuthDirMaxServersPerAddr
Definition: or.h:4088
int8_t * timeouts_after_firsthop
Definition: or.h:4951
char * HTTPSProxy
Definition: or.h:4027
uint64_t TestingMinExitFlagThreshold
Definition: or.h:4424
unsigned int rejects_all
Definition: or.h:2553
socks_request_t * socks_request
Definition: or.h:1757
Definition: hs_ident.h:109
#define REND_DESC_COOKIE_LEN
Definition: or.h:790
or_handshake_state_t * handshake_state
Definition: or.h:1670
time_t published
Definition: or.h:2693
tor_addr_t addr
Definition: or.h:2011
uint16_t port
Definition: or.h:2845
or_conn_status_event_t
Definition: or.h:5032
int ClientDNSRejectInternalAddresses
Definition: or.h:4272
crypto_digest_t * digest_sent
Definition: or.h:1583
uint16_t Socks5ProxyPort
Definition: or.h:4038
download_schedule_increment_t
Definition: or.h:2074
int ConnLimit_
Definition: or.h:3928
const char * marked_for_close_file
Definition: or.h:3163
unsigned int is_ancient
Definition: or.h:3325
unsigned is_unix_addr
Definition: or.h:3629
uint64_t flags
Definition: or.h:2596
smartlist_t * prepend_policy
Definition: or.h:3462
tor_x509_cert_t * auth_cert
Definition: or.h:1505
uint64_t MaxUnparseableDescSizeToLog
Definition: or.h:4620
unsigned int hs_service_side_rend_circ_has_been_relaunched
Definition: or.h:3388
int AllDirActionsPrivate
Definition: or.h:3888
int TestingTorNetwork
Definition: or.h:4421
unsigned int received_authenticate
Definition: or.h:1542
time_t timestamp_last_write_allowed
Definition: or.h:1386
double PathsNeededToBuildCircuits
Definition: or.h:4570
uint32_t addr
Definition: or.h:2644
uint8_t state
Definition: or.h:1330
unsigned int n_entries
Definition: or.h:2420
dirreq_state_t
Definition: or.h:5176
version_status_t
Definition: or.h:5206
int EntryStatistics
Definition: or.h:4256
int DoSCircuitCreationBurst
Definition: or.h:4684
addr_policy_action_t
Definition: or.h:1984
smartlist_t * RejectPlaintextPorts
Definition: or.h:3957
unsigned int has_measured_bw
Definition: or.h:2602
uint16_t HTTPProxyPort
Definition: or.h:4024
int CircuitsAvailableTimeout
Definition: or.h:3987
unsigned int is_flagged_running
Definition: or.h:2366
unsigned int need_uptime
Definition: or.h:2992
uint32_t addr
Definition: or.h:2865
int MainloopStats
Definition: or.h:4019
rend_auth_type_t auth_type
Definition: or.h:873
int TokenBucketRefillInterval
Definition: or.h:4160
int desired_path_len
Definition: or.h:2988
uint8_t state
Definition: or.h:2953
networkstatus_type_t
Definition: or.h:2668
time_t last_reachable
Definition: or.h:2569
struct networkstatus_t networkstatus_t
config_line_t * ClientTransportPlugin
Definition: or.h:3842
unsigned int supports_tunnelled_dir_requests
Definition: or.h:2293
smartlist_t * AutomapHostsSuffixes
Definition: or.h:3973
int CookieAuthFileGroupReadable
Definition: or.h:4125
int FetchUselessDescriptors
Definition: or.h:3887
Definition: crypto_digest.c:171
unsigned int has_opened
Definition: or.h:3329
time_t network_last_live
Definition: or.h:4946
int n
Definition: or.h:1217
int V3AuthDistDelay
Definition: or.h:4302
unsigned int is_canonical
Definition: or.h:1650
char * nickname
Definition: or.h:2639
routerset_t * ExcludeNodes
Definition: or.h:3709
unsigned int waiting_time
Definition: or.h:3031
int OptimisticData
Definition: or.h:4504
int TestingSigningKeySlop
Definition: or.h:4594
config_line_t * HidServAuth
Definition: or.h:4013
int KeepBindCapabilities
Definition: or.h:4615
uint64_t TestingMinFastFlagThreshold
Definition: or.h:4427