Tor  0.4.3.1-alpha-dev
or_options_st.h
Go to the documentation of this file.
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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file or_options_st.h
9  *
10  * \brief The or_options_t structure, which represents Tor's configuration.
11  */
12 
13 #ifndef TOR_OR_OPTIONS_ST_H
14 #define TOR_OR_OPTIONS_ST_H
15 
16 #include "core/or/or.h"
17 #include "lib/cc/torint.h"
18 #include "lib/net/address.h"
20 
21 struct smartlist_t;
22 struct config_line_t;
23 struct config_suite_t;
24 struct routerset_t;
25 
26 /** Enumeration of outbound address configuration types:
27  * Exit-only, OR-only, or both */
28 typedef enum {OUTBOUND_ADDR_EXIT, OUTBOUND_ADDR_OR,
29  OUTBOUND_ADDR_EXIT_AND_OR,
30  OUTBOUND_ADDR_MAX} outbound_addr_t;
31 
32 /** Which protocol to use for TCPProxy. */
33 typedef enum {
34  /** Use the HAProxy proxy protocol. */
37 
38 /** Configuration options for a Tor process. */
39 struct or_options_t {
40  uint32_t magic_;
41 
42  /** What should the tor process actually do? */
44  char *command_arg; /**< Argument for command-line option. */
45 
46  struct config_line_t *Logs; /**< New-style list of configuration lines
47  * for logs */
48  int LogTimeGranularity; /**< Log resolution in milliseconds. */
49 
50  int LogMessageDomains; /**< Boolean: Should we log the domain(s) in which
51  * each log message occurs? */
52  int TruncateLogFile; /**< Boolean: Should we truncate the log file
53  before we start writing? */
54  char *SyslogIdentityTag; /**< Identity tag to add for syslog logging. */
55  char *AndroidIdentityTag; /**< Identity tag to add for Android logging. */
56 
57  char *DebugLogFile; /**< Where to send verbose log messages. */
58  char *DataDirectory_option; /**< Where to store long-term data, as
59  * configured by the user. */
60  char *DataDirectory; /**< Where to store long-term data, as modified. */
61  int DataDirectoryGroupReadable; /**< Boolean: Is the DataDirectory g+r? */
62 
63  char *KeyDirectory_option; /**< Where to store keys, as
64  * configured by the user. */
65  char *KeyDirectory; /**< Where to store keys data, as modified. */
66  int KeyDirectoryGroupReadable; /**< Boolean: Is the KeyDirectory g+r? */
67 
68  char *CacheDirectory_option; /**< Where to store cached data, as
69  * configured by the user. */
70  char *CacheDirectory; /**< Where to store cached data, as modified. */
71  int CacheDirectoryGroupReadable; /**< Boolean: Is the CacheDirectory g+r? */
72 
73  char *Nickname; /**< OR only: nickname of this onion router. */
74  char *Address; /**< OR only: configured address for this onion router. */
75  char *PidFile; /**< Where to store PID of Tor process. */
76 
77  struct routerset_t *ExitNodes; /**< Structure containing nicknames, digests,
78  * country codes and IP address patterns of ORs to
79  * consider as exits. */
80  struct routerset_t *MiddleNodes; /**< Structure containing nicknames,
81  * digests, country codes and IP address patterns
82  * of ORs to consider as middles. */
83  struct routerset_t *EntryNodes;/**< Structure containing nicknames, digests,
84  * country codes and IP address patterns of ORs to
85  * consider as entry points. */
86  int StrictNodes; /**< Boolean: When none of our EntryNodes or ExitNodes
87  * are up, or we need to access a node in ExcludeNodes,
88  * do we just fail instead? */
89  struct routerset_t *ExcludeNodes;/**< Structure containing nicknames,
90  * digests, country codes and IP address patterns
91  * of ORs not to use in circuits. But see
92  * StrictNodes above. */
93  struct routerset_t *ExcludeExitNodes;/**< Structure containing nicknames,
94  * digests, country codes and IP address
95  * patterns of ORs not to consider as
96  * exits. */
97 
98  /** Union of ExcludeNodes and ExcludeExitNodes */
99  struct routerset_t *ExcludeExitNodesUnion_;
100 
101  int DisableAllSwap; /**< Boolean: Attempt to call mlockall() on our
102  * process for all current and future memory. */
103 
104  struct config_line_t *ExitPolicy; /**< Lists of exit policy components. */
105  int ExitPolicyRejectPrivate; /**< Should we not exit to reserved private
106  * addresses, and our own published addresses?
107  */
108  int ExitPolicyRejectLocalInterfaces; /**< Should we not exit to local
109  * interface addresses?
110  * Includes OutboundBindAddresses and
111  * configured ports. */
112  int ReducedExitPolicy; /**<Should we use the Reduced Exit Policy? */
113  struct config_line_t *SocksPolicy; /**< Lists of socks policy components */
114  struct config_line_t *DirPolicy; /**< Lists of dir policy components */
115  /** Local address to bind outbound sockets */
117  /** Local address to bind outbound relay sockets */
119  /** Local address to bind outbound exit sockets */
121  /** Addresses derived from the various OutboundBindAddress lines.
122  * [][0] is IPv4, [][1] is IPv6
123  */
124  tor_addr_t OutboundBindAddresses[OUTBOUND_ADDR_MAX][2];
125  /** Whether dirservers allow router descriptors with private IPs. */
127  /** Whether routers accept EXTEND cells to routers with private IPs. */
129  char *User; /**< Name of user to run Tor as. */
130  /** Ports to listen on for OR connections. */
132  /** Ports to listen on for extended OR connections. */
134  /** Ports to listen on for SOCKS connections. */
136  /** Ports to listen on for transparent pf/netfilter connections. */
138  char *TransProxyType; /**< What kind of transparent proxy
139  * implementation are we using? */
140  /** Parsed value of TransProxyType. */
141  enum {
142  TPT_DEFAULT,
143  TPT_PF_DIVERT,
144  TPT_IPFW,
145  TPT_TPROXY,
147  /** Ports to listen on for transparent natd connections. */
149  /** Ports to listen on for HTTP Tunnel connections. */
151  struct config_line_t *ControlPort_lines; /**< Ports to listen on for control
152  * connections. */
153  /** List of Unix Domain Sockets to listen on for control connections. */
155 
156  int ControlSocketsGroupWritable; /**< Boolean: Are control sockets g+rw? */
157  int UnixSocksGroupWritable; /**< Boolean: Are SOCKS Unix sockets g+rw? */
158  /** Ports to listen on for directory connections. */
160  /** Ports to listen on for DNS requests. */
162 
163  /* MaxMemInQueues value as input by the user. We clean this up to be
164  * MaxMemInQueues. */
165  uint64_t MaxMemInQueues_raw;
166  uint64_t MaxMemInQueues;/**< If we have more memory than this allocated
167  * for queues and buffers, run the OOM handler */
168  /** Above this value, consider ourselves low on RAM. */
170 
171  /** @name port booleans
172  *
173  * Derived booleans: For server ports and ControlPort, true iff there is a
174  * non-listener port on an AF_INET or AF_INET6 address of the given type
175  * configured in one of the _lines options above.
176  * For client ports, also true if there is a unix socket configured.
177  * If you are checking for client ports, you may want to use:
178  * SocksPort_set || TransPort_set || NATDPort_set || DNSPort_set ||
179  * HTTPTunnelPort_set
180  * rather than SocksPort_set.
181  *
182  * @{
183  */
184  unsigned int ORPort_set : 1;
185  unsigned int SocksPort_set : 1;
186  unsigned int TransPort_set : 1;
187  unsigned int NATDPort_set : 1;
188  unsigned int ControlPort_set : 1;
189  unsigned int DirPort_set : 1;
190  unsigned int DNSPort_set : 1;
191  unsigned int ExtORPort_set : 1;
192  unsigned int HTTPTunnelPort_set : 1;
193  /**@}*/
194 
195  int AssumeReachable; /**< Whether to publish our descriptor regardless. */
196  int AuthoritativeDir; /**< Boolean: is this an authoritative directory? */
197  int V3AuthoritativeDir; /**< Boolean: is this an authoritative directory
198  * for version 3 directories? */
199  int BridgeAuthoritativeDir; /**< Boolean: is this an authoritative directory
200  * that aggregates bridge descriptors? */
201 
202  /** If set on a bridge relay, it will include this value on a new
203  * "bridge-distribution-request" line in its bridge descriptor. */
205 
206  /** If set on a bridge authority, it will answer requests on its dirport
207  * for bridge statuses -- but only if the requests use this password. */
209  /** If BridgePassword is set, this is a SHA256 digest of the basic http
210  * authenticator for it. Used so we can do a time-independent comparison. */
212 
213  int UseBridges; /**< Boolean: should we start all circuits with a bridge? */
214  struct config_line_t *Bridges; /**< List of bootstrap bridge addresses. */
215 
216  struct config_line_t *ClientTransportPlugin; /**< List of client
217  transport plugins. */
218 
219  struct config_line_t *ServerTransportPlugin; /**< List of client
220  transport plugins. */
221 
222  /** List of TCP/IP addresses that transports should listen at. */
224 
225  /** List of options that must be passed to pluggable transports. */
227 
228  int BridgeRelay; /**< Boolean: are we acting as a bridge relay? We make
229  * this explicit so we can change how we behave in the
230  * future. */
231 
232  /** Boolean: if we know the bridge's digest, should we get new
233  * descriptors from the bridge authorities or from the bridge itself? */
235 
236  int AvoidDiskWrites; /**< Boolean: should we never cache things to disk?
237  * Not used yet. */
238  int ClientOnly; /**< Boolean: should we never evolve into a server role? */
239 
240  int ReducedConnectionPadding; /**< Boolean: Should we try to keep connections
241  open shorter and pad them less against
242  connection-level traffic analysis? */
243  /** Autobool: if auto, then connection padding will be negotiated by client
244  * and server. If 0, it will be fully disabled. If 1, the client will still
245  * pad to the server regardless of server support. */
247 
248  /** Boolean: if true, then circuit padding will be negotiated by client
249  * and server, subject to consenus limits (default). If 0, it will be fully
250  * disabled. */
252 
253  /** Boolean: if true, then this client will only use circuit padding
254  * algorithms that are known to use a low amount of overhead. If false,
255  * we will use all available circuit padding algorithms.
256  */
258 
259  /** To what authority types do we publish our descriptor? Choices are
260  * "v1", "v2", "v3", "bridge", or "". */
262  /** A bitfield of authority types, derived from PublishServerDescriptor. */
264  /** Boolean: do we publish hidden service descriptors to the HS auths? */
266  int FetchServerDescriptors; /**< Do we fetch server descriptors as normal? */
267  int FetchHidServDescriptors; /**< and hidden service descriptors? */
268 
269  int FetchUselessDescriptors; /**< Do we fetch non-running descriptors too? */
270  int AllDirActionsPrivate; /**< Should every directory action be sent
271  * through a Tor circuit? */
272 
273  /** A routerset that should be used when picking middle nodes for HS
274  * circuits. */
275  struct routerset_t *HSLayer2Nodes;
276 
277  /** A routerset that should be used when picking third-hop nodes for HS
278  * circuits. */
279  struct routerset_t *HSLayer3Nodes;
280 
281  /** Onion Services in HiddenServiceSingleHopMode make one-hop (direct)
282  * circuits between the onion service server, and the introduction and
283  * rendezvous points. (Onion service descriptors are still posted using
284  * 3-hop paths, to avoid onion service directories blocking the service.)
285  * This option makes every hidden service instance hosted by
286  * this tor instance a Single Onion Service.
287  * HiddenServiceSingleHopMode requires HiddenServiceNonAnonymousMode to be
288  * set to 1.
289  * Use rend_service_allow_non_anonymous_connection() or
290  * rend_service_reveal_startup_time() instead of using this option directly.
291  */
293  /* Makes hidden service clients and servers non-anonymous on this tor
294  * instance. Allows the non-anonymous HiddenServiceSingleHopMode. Enables
295  * non-anonymous behaviour in the hidden service protocol.
296  * Use rend_service_non_anonymous_mode_enabled() instead of using this option
297  * directly.
298  */
299  int HiddenServiceNonAnonymousMode;
300 
301  int ConnLimit; /**< Demanded minimum number of simultaneous connections. */
302  int ConnLimit_; /**< Maximum allowed number of simultaneous connections. */
303  int ConnLimit_high_thresh; /**< start trying to lower socket usage if we
304  * have this many. */
305  int ConnLimit_low_thresh; /**< try to get down to here after socket
306  * exhaustion. */
307  int RunAsDaemon; /**< If true, run in the background. (Unix only) */
308  int FascistFirewall; /**< Whether to prefer ORs reachable on open ports. */
309  struct smartlist_t *FirewallPorts; /**< Which ports our firewall allows
310  * (strings). */
311  /** IP:ports our firewall allows. */
313  struct config_line_t *ReachableORAddresses; /**< IP:ports for OR conns. */
314  struct config_line_t *ReachableDirAddresses; /**< IP:ports for Dir conns. */
315 
316  int ConstrainedSockets; /**< Shrink xmit and recv socket buffers. */
317  uint64_t ConstrainedSockSize; /**< Size of constrained buffers. */
318 
319  /** Whether we should drop exit streams from Tors that we don't know are
320  * relays. One of "0" (never refuse), "1" (always refuse), or "-1" (do
321  * what the consensus says, defaulting to 'refuse' if the consensus says
322  * nothing). */
324 
325  /** Application ports that require all nodes in circ to have sufficient
326  * uptime. */
328  /** Application ports that are likely to be unencrypted and
329  * unauthenticated; we reject requests for them to prevent the
330  * user from screwing up and leaking plaintext secrets to an
331  * observer somewhere on the Internet. */
333  /** Related to RejectPlaintextPorts above, except this config option
334  * controls whether we warn (in the log and via a controller status
335  * event) every time a risky connection is attempted. */
337  /** Should we try to reuse the same exit node for a given host */
339  int TrackHostExitsExpire; /**< Number of seconds until we expire an
340  * addressmap */
341  struct config_line_t *AddressMap; /**< List of address map directives. */
342  int AutomapHostsOnResolve; /**< If true, when we get a resolve request for a
343  * hostname ending with one of the suffixes in
344  * <b>AutomapHostsSuffixes</b>, map it to a
345  * virtual address. */
346  /** List of suffixes for <b>AutomapHostsOnResolve</b>. The special value
347  * "." means "match everything." */
349  int RendPostPeriod; /**< How often do we post each rendezvous service
350  * descriptor? Remember to publish them independently. */
351  int KeepalivePeriod; /**< How often do we send padding cells to keep
352  * connections alive? */
353  int SocksTimeout; /**< How long do we let a socks connection wait
354  * unattached before we fail it? */
355  int LearnCircuitBuildTimeout; /**< If non-zero, we attempt to learn a value
356  * for CircuitBuildTimeout based on timeout
357  * history. Use circuit_build_times_disabled()
358  * rather than checking this value directly. */
359  int CircuitBuildTimeout; /**< Cull non-open circuits that were born at
360  * least this many seconds ago. Used until
361  * adaptive algorithm learns a new value. */
362  int CircuitsAvailableTimeout; /**< Try to have an open circuit for at
363  least this long after last activity */
364  int CircuitStreamTimeout; /**< If non-zero, detach streams from circuits
365  * and try a new circuit if the stream has been
366  * waiting for this many seconds. If zero, use
367  * our default internal timeout schedule. */
368  int MaxOnionQueueDelay; /*< DOCDOC */
369  int NewCircuitPeriod; /**< How long do we use a circuit before building
370  * a new one? */
371  int MaxCircuitDirtiness; /**< Never use circs that were first used more than
372  this interval ago. */
373  uint64_t BandwidthRate; /**< How much bandwidth, on average, are we willing
374  * to use in a second? */
375  uint64_t BandwidthBurst; /**< How much bandwidth, at maximum, are we willing
376  * to use in a second? */
377  uint64_t MaxAdvertisedBandwidth; /**< How much bandwidth are we willing to
378  * tell other nodes we have? */
379  uint64_t RelayBandwidthRate; /**< How much bandwidth, on average, are we
380  * willing to use for all relayed conns? */
381  uint64_t RelayBandwidthBurst; /**< How much bandwidth, at maximum, will we
382  * use in a second for all relayed conns? */
383  uint64_t PerConnBWRate; /**< Long-term bw on a single TLS conn, if set. */
384  uint64_t PerConnBWBurst; /**< Allowed burst on a single TLS conn, if set. */
385  int NumCPUs; /**< How many CPUs should we try to use? */
386  struct config_line_t *RendConfigLines; /**< List of configuration lines
387  * for rendezvous services. */
388  struct config_line_t *HidServAuth; /**< List of configuration lines for
389  * client-side authorizations for hidden
390  * services */
391  char *ClientOnionAuthDir; /**< Directory to keep client
392  * onion service authorization secret keys */
393  char *ContactInfo; /**< Contact info to be published in the directory. */
394 
395  int HeartbeatPeriod; /**< Log heartbeat messages after this many seconds
396  * have passed. */
397  int MainloopStats; /**< Log main loop statistics as part of the
398  * heartbeat messages. */
399 
400  char *HTTPProxy; /**< hostname[:port] to use as http proxy, if any. */
401  tor_addr_t HTTPProxyAddr; /**< Parsed IPv4 addr for http proxy, if any. */
402  uint16_t HTTPProxyPort; /**< Parsed port for http proxy, if any. */
403  char *HTTPProxyAuthenticator; /**< username:password string, if any. */
404 
405  char *HTTPSProxy; /**< hostname[:port] to use as https proxy, if any. */
406  tor_addr_t HTTPSProxyAddr; /**< Parsed addr for https proxy, if any. */
407  uint16_t HTTPSProxyPort; /**< Parsed port for https proxy, if any. */
408  char *HTTPSProxyAuthenticator; /**< username:password string, if any. */
409 
410  char *Socks4Proxy; /**< hostname:port to use as a SOCKS4 proxy, if any. */
411  tor_addr_t Socks4ProxyAddr; /**< Derived from Socks4Proxy. */
412  uint16_t Socks4ProxyPort; /**< Derived from Socks4Proxy. */
413 
414  char *Socks5Proxy; /**< hostname:port to use as a SOCKS5 proxy, if any. */
415  tor_addr_t Socks5ProxyAddr; /**< Derived from Sock5Proxy. */
416  uint16_t Socks5ProxyPort; /**< Derived from Socks5Proxy. */
417  char *Socks5ProxyUsername; /**< Username for SOCKS5 authentication, if any */
418  char *Socks5ProxyPassword; /**< Password for SOCKS5 authentication, if any */
419 
420  char *TCPProxy; /**< protocol and hostname:port to use as a proxy, if any. */
421  tcp_proxy_protocol_t TCPProxyProtocol; /**< Derived from TCPProxy. */
422  tor_addr_t TCPProxyAddr; /**< Derived from TCPProxy. */
423  uint16_t TCPProxyPort; /**< Derived from TCPProxy. */
424 
425  /** List of configuration lines for replacement directory authorities.
426  * If you just want to replace one class of authority at a time,
427  * use the "Alternate*Authority" options below instead. */
429 
430  /** List of fallback directory servers */
432  /** Whether to use the default hard-coded FallbackDirs */
434 
435  /** Weight to apply to all directory authority rates if considering them
436  * along with fallbackdirs */
438 
439  /** If set, use these main (currently v3) directory authorities and
440  * not the default ones. */
442 
443  /** If set, use these bridge authorities and not the default one. */
445 
446  struct config_line_t *MyFamily_lines; /**< Declared family for this OR. */
447  struct config_line_t *MyFamily; /**< Declared family for this OR,
448  normalized */
449  struct config_line_t *NodeFamilies; /**< List of config lines for
450  * node families */
451  /** List of parsed NodeFamilies values. */
453  struct config_line_t *AuthDirBadExit; /**< Address policy for descriptors to
454  * mark as bad exits. */
455  struct config_line_t *AuthDirReject; /**< Address policy for descriptors to
456  * reject. */
457  struct config_line_t *AuthDirInvalid; /**< Address policy for descriptors to
458  * never mark as valid. */
459  /** @name AuthDir...CC
460  *
461  * Lists of country codes to mark as BadExit, or Invalid, or to
462  * reject entirely.
463  *
464  * @{
465  */
466  struct smartlist_t *AuthDirBadExitCCs;
467  struct smartlist_t *AuthDirInvalidCCs;
468  struct smartlist_t *AuthDirRejectCCs;
469  /**@}*/
470 
471  char *AccountingStart; /**< How long is the accounting interval, and when
472  * does it start? */
473  uint64_t AccountingMax; /**< How many bytes do we allow per accounting
474  * interval before hibernation? 0 for "never
475  * hibernate." */
476  /** How do we determine when our AccountingMax has been reached?
477  * "max" for when in or out reaches AccountingMax
478  * "sum" for when in plus out reaches AccountingMax
479  * "in" for when in reaches AccountingMax
480  * "out" for when out reaches AccountingMax */
482  enum { ACCT_MAX, ACCT_SUM, ACCT_IN, ACCT_OUT } AccountingRule;
483 
484  /** Base64-encoded hash of accepted passwords for the control system. */
486  /** As HashedControlPassword, but not saved. */
488 
489  int CookieAuthentication; /**< Boolean: do we enable cookie-based auth for
490  * the control system? */
491  char *CookieAuthFile; /**< Filesystem location of a ControlPort
492  * authentication cookie. */
493  char *ExtORPortCookieAuthFile; /**< Filesystem location of Extended
494  * ORPort authentication cookie. */
495  int CookieAuthFileGroupReadable; /**< Boolean: Is the CookieAuthFile g+r? */
496  int ExtORPortCookieAuthFileGroupReadable; /**< Boolean: Is the
497  * ExtORPortCookieAuthFile g+r? */
498  int LeaveStreamsUnattached; /**< Boolean: Does Tor attach new streams to
499  * circuits itself (0), or does it expect a controller
500  * to cope? (1) */
501  int DisablePredictedCircuits; /**< Boolean: does Tor preemptively
502  * make circuits in the background (0),
503  * or not (1)? */
504 
505  /** Process specifier for a controller that ‘owns’ this Tor
506  * instance. Tor will terminate if its owning controller does. */
508  /** FD specifier for a controller that owns this Tor instance. */
510 
511  int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how
512  * long do we wait before exiting? */
513  char *SafeLogging; /**< Contains "relay", "1", "0" (meaning no scrubbing). */
514 
515  /* Derived from SafeLogging */
516  enum {
517  SAFELOG_SCRUB_ALL, SAFELOG_SCRUB_RELAY, SAFELOG_SCRUB_NONE
518  } SafeLogging_;
519 
520  int Sandbox; /**< Boolean: should sandboxing be enabled? */
521  int SafeSocks; /**< Boolean: should we outright refuse application
522  * connections that use socks4 or socks5-with-local-dns? */
523  int ProtocolWarnings; /**< Boolean: when other parties screw up the Tor
524  * protocol, is it a warn or an info in our logs? */
525  int TestSocks; /**< Boolean: when we get a socks connection, do we loudly
526  * log whether it was DNS-leaking or not? */
527  /** Token Bucket Refill resolution in milliseconds. */
529 
530  /** Boolean: Do we try to enter from a smallish number
531  * of fixed nodes? */
533  /** Internal variable to remember whether we're actually acting on
534  * UseEntryGuards_option -- when we're a non-anonymous Single Onion Service,
535  * it is always false, otherwise we use the value of UseEntryGuards_option.
536  * */
538 
539  int NumEntryGuards; /**< How many entry guards do we try to establish? */
540 
541  /** If 1, we use any guardfraction information we see in the
542  * consensus. If 0, we don't. If -1, let the consensus parameter
543  * decide. */
545 
546  int NumDirectoryGuards; /**< How many dir guards do we try to establish?
547  * If 0, use value from NumEntryGuards. */
548  int NumPrimaryGuards; /**< How many primary guards do we want? */
549 
550  int RephistTrackTime; /**< How many seconds do we keep rephist info? */
551  /** Should we always fetch our dir info on the mirror schedule (which
552  * means directly from the authorities) no matter our other config? */
554 
555  /** Should we fetch our dir info at the start of the consensus period? */
557 
558  int DirCache; /**< Cache all directory documents and accept requests via
559  * tunnelled dir conns from clients. If 1, enabled (default);
560  * If 0, disabled. Use dir_server_mode() rather than
561  * referencing this option directly. (Except for routermode
562  * and relay_config, which do direct checks.) */
563 
564  char *VirtualAddrNetworkIPv4; /**< Address and mask to hand out for virtual
565  * MAPADDRESS requests for IPv4 addresses */
566  char *VirtualAddrNetworkIPv6; /**< Address and mask to hand out for virtual
567  * MAPADDRESS requests for IPv6 addresses */
568  int ServerDNSSearchDomains; /**< Boolean: If set, we don't force exit
569  * addresses to be FQDNs, but rather search for them in
570  * the local domains. */
571  int ServerDNSDetectHijacking; /**< Boolean: If true, check for DNS failure
572  * hijacking. */
573  int ServerDNSRandomizeCase; /**< Boolean: Use the 0x20-hack to prevent
574  * DNS poisoning attacks. */
575  char *ServerDNSResolvConfFile; /**< If provided, we configure our internal
576  * resolver from the file here rather than from
577  * /etc/resolv.conf (Unix) or the registry (Windows). */
578  char *DirPortFrontPage; /**< This is a full path to a file with an html
579  disclaimer. This allows a server administrator to show
580  that they're running Tor and anyone visiting their server
581  will know this without any specialized knowledge. */
582  int DisableDebuggerAttachment; /**< Currently Linux only specific attempt to
583  disable ptrace; needs BSD testing. */
584  /** Boolean: if set, we start even if our resolv.conf file is missing
585  * or broken. */
587  /** Boolean: if set, then even connections to private addresses will get
588  * rate-limited. */
590  /** A list of addresses that definitely should be resolvable. Used for
591  * testing our DNS server. */
593  int EnforceDistinctSubnets; /**< If true, don't allow multiple routers in the
594  * same network zone in the same circuit. */
595  int AllowNonRFC953Hostnames; /**< If true, we allow connections to hostnames
596  * with weird characters. */
597  /** If true, we try resolving hostnames with weird characters. */
599 
600  /** If true, we try to download extra-info documents (and we serve them,
601  * if we are a cache). For authorities, this is always true. */
603 
604  /** If true, we're configured to collect statistics on clients
605  * requesting network statuses from us as directory. */
607  /** Internal variable to remember whether we're actually acting on
608  * DirReqStatistics_option -- yes if it's set and we're a server, else no. */
610 
611  /** If true, the user wants us to collect statistics on port usage. */
613 
614  /** If true, the user wants us to collect connection statistics. */
616 
617  /** If true, the user wants us to collect cell statistics. */
619 
620  /** If true, the user wants us to collect padding statistics. */
622 
623  /** If true, the user wants us to collect statistics as entry node. */
625 
626  /** If true, the user wants us to collect statistics as hidden service
627  * directory, introduction point, or rendezvous point. */
629  /** Internal variable to remember whether we're actually acting on
630  * HiddenServiceStatistics_option -- yes if it's set and we're a server,
631  * else no. */
633 
634  /** If true, include statistics file contents in extra-info documents. */
636 
637  /** If true, do not believe anybody who tells us that a domain resolves
638  * to an internal address, or that an internal address has a PTR mapping.
639  * Helps avoid some cross-site attacks. */
641 
642  /** If true, do not accept any requests to connect to internal addresses
643  * over randomly chosen exits. */
645 
646  /** If true, clients may connect over IPv4. If false, they will avoid
647  * connecting over IPv4. We enforce this for OR and Dir connections. */
649  /** If true, clients may connect over IPv6. If false, they will avoid
650  * connecting over IPv4. We enforce this for OR and Dir connections.
651  * Use fascist_firewall_use_ipv6() instead of accessing this value
652  * directly. */
654  /** If true, prefer an IPv6 OR port over an IPv4 one for entry node
655  * connections. If auto, bridge clients prefer IPv6, and other clients
656  * prefer IPv4. Use node_ipv6_or_preferred() instead of accessing this value
657  * directly. */
659  /** If true, prefer an IPv6 directory port over an IPv4 one for direct
660  * directory connections. If auto, bridge clients prefer IPv6, and other
661  * clients prefer IPv4. Use fascist_firewall_prefer_ipv6_dirport() instead of
662  * accessing this value directly. */
664 
665  /** If true, prefer an IPv4 or IPv6 OR port at random. */
667 
668  /** The length of time that we think a consensus should be fresh. */
670  /** The length of time we think it will take to distribute votes. */
672  /** The length of time we think it will take to distribute signatures. */
674  /** The number of intervals we think a consensus should be valid. */
676 
677  /** Should advertise and sign consensuses with a legacy key, for key
678  * migration purposes? */
680 
681  /** Location of bandwidth measurement file */
683 
684  /** Location of guardfraction file */
686 
687  /** The length of time that we think an initial consensus should be fresh.
688  * Only altered on testing networks. */
690 
691  /** The length of time we think it will take to distribute initial votes.
692  * Only altered on testing networks. */
694 
695  /** The length of time we think it will take to distribute initial
696  * signatures. Only altered on testing networks.*/
698 
699  /** Offset in seconds added to the starting time for consensus
700  voting. Only altered on testing networks. */
702 
703  /** Schedule for when servers should download things in general. Only
704  * altered on testing networks. */
706 
707  /** Schedule for when clients should download things in general. Only
708  * altered on testing networks. */
710 
711  /** Schedule for when servers should download consensuses. Only altered
712  * on testing networks. */
714 
715  /** Schedule for when clients should download consensuses. Only altered
716  * on testing networks. */
718 
719  /** Schedule for when clients should download consensuses from authorities
720  * if they are bootstrapping (that is, they don't have a usable, reasonably
721  * live consensus). Only used by clients fetching from a list of fallback
722  * directory mirrors.
723  *
724  * This schedule is incremented by (potentially concurrent) connection
725  * attempts, unlike other schedules, which are incremented by connection
726  * failures. Only altered on testing networks. */
728 
729  /** Schedule for when clients should download consensuses from fallback
730  * directory mirrors if they are bootstrapping (that is, they don't have a
731  * usable, reasonably live consensus). Only used by clients fetching from a
732  * list of fallback directory mirrors.
733  *
734  * This schedule is incremented by (potentially concurrent) connection
735  * attempts, unlike other schedules, which are incremented by connection
736  * failures. Only altered on testing networks. */
738 
739  /** Schedule for when clients should download consensuses from authorities
740  * if they are bootstrapping (that is, they don't have a usable, reasonably
741  * live consensus). Only used by clients which don't have or won't fetch
742  * from a list of fallback directory mirrors.
743  *
744  * This schedule is incremented by (potentially concurrent) connection
745  * attempts, unlike other schedules, which are incremented by connection
746  * failures. Only altered on testing networks. */
748 
749  /** Schedule for when clients should download bridge descriptors. Only
750  * altered on testing networks. */
752 
753  /** Schedule for when clients should download bridge descriptors when they
754  * have no running bridges. Only altered on testing networks. */
756 
757  /** When directory clients have only a few descriptors to request, they
758  * batch them until they have more, or until this amount of time has
759  * passed. Only altered on testing networks. */
761 
762  /** How long do we let a directory connection stall before expiring
763  * it? Only altered on testing networks. */
765 
766  /** How many simultaneous in-progress connections will we make when trying
767  * to fetch a consensus before we wait for one to complete, timeout, or
768  * error out? Only altered on testing networks. */
770 
771  /** If true, we take part in a testing network. Change the defaults of a
772  * couple of other configuration options and allow to change the values
773  * of certain configuration options. */
775 
776  /** Enable CONN_BW events. Only altered on testing networks. */
778 
779  /** Enable CELL_STATS events. Only altered on testing networks. */
781 
782  /** If true, and we have GeoIP data, and we're a bridge, keep a per-country
783  * count of how many client addresses have contacted us so that we can help
784  * the bridge authority guess which countries have blocked access to us. */
786 
787  /** Optionally, IPv4 and IPv6 GeoIP data. */
788  char *GeoIPFile;
789  char *GeoIPv6File;
790 
791  /** Autobool: if auto, then any attempt to Exclude{Exit,}Nodes a particular
792  * country code will exclude all nodes in ?? and A1. If true, all nodes in
793  * ?? and A1 are excluded. Has no effect if we don't know any GeoIP data. */
795 
796  /** If true, SIGHUP should reload the torrc. Sometimes controllers want
797  * to make this false. */
799 
800  /** The main parameter for picking circuits within a connection.
801  *
802  * If this value is positive, when picking a cell to relay on a connection,
803  * we always relay from the circuit whose weighted cell count is lowest.
804  * Cells are weighted exponentially such that if one cell is sent
805  * 'CircuitPriorityHalflife' seconds before another, it counts for half as
806  * much.
807  *
808  * If this value is zero, we're disabling the cell-EWMA algorithm.
809  *
810  * If this value is negative, we're using the default approach
811  * according to either Tor or a parameter set in the consensus.
812  */
814 
815  /** Set to true if the TestingTorNetwork configuration option is set.
816  * This is used so that options_validate() has a chance to realize that
817  * the defaults have changed. */
819 
820  /** If 1, we try to use microdescriptors to build circuits. If 0, we don't.
821  * If -1, Tor decides. */
823 
824  /** File where we should write the ControlPort. */
826  /** Should that file be group-readable? */
828 
829 #define MAX_MAX_CLIENT_CIRCUITS_PENDING 1024
830  /** Maximum number of non-open general-purpose origin circuits to allow at
831  * once. */
833 
834  /** If 1, we always send optimistic data when it's supported. If 0, we
835  * never use it. If -1, we do what the consensus says. */
837 
838  /** If 1, we accept and launch no external network connections, except on
839  * control ports. */
841 
842  /**
843  * Parameters for path-bias detection.
844  * @{
845  * These options override the default behavior of Tor's (**currently
846  * experimental**) path bias detection algorithm. To try to find broken or
847  * misbehaving guard nodes, Tor looks for nodes where more than a certain
848  * fraction of circuits through that guard fail to get built.
849  *
850  * The PathBiasCircThreshold option controls how many circuits we need to
851  * build through a guard before we make these checks. The
852  * PathBiasNoticeRate, PathBiasWarnRate and PathBiasExtremeRate options
853  * control what fraction of circuits must succeed through a guard so we
854  * won't write log messages. If less than PathBiasExtremeRate circuits
855  * succeed *and* PathBiasDropGuards is set to 1, we disable use of that
856  * guard.
857  *
858  * When we have seen more than PathBiasScaleThreshold circuits through a
859  * guard, we scale our observations by 0.5 (governed by the consensus) so
860  * that new observations don't get swamped by old ones.
861  *
862  * By default, or if a negative value is provided for one of these options,
863  * Tor uses reasonable defaults from the networkstatus consensus document.
864  * If no defaults are available there, these options default to 150, .70,
865  * .50, .30, 0, and 300 respectively.
866  */
868  double PathBiasNoticeRate;
869  double PathBiasWarnRate;
870  double PathBiasExtremeRate;
871  int PathBiasDropGuards;
872  int PathBiasScaleThreshold;
873  /** @} */
874 
875  /**
876  * Parameters for path-bias use detection
877  * @{
878  * Similar to the above options, these options override the default behavior
879  * of Tor's (**currently experimental**) path use bias detection algorithm.
880  *
881  * Where as the path bias parameters govern thresholds for successfully
882  * building circuits, these four path use bias parameters govern thresholds
883  * only for circuit usage. Circuits which receive no stream usage are not
884  * counted by this detection algorithm. A used circuit is considered
885  * successful if it is capable of carrying streams or otherwise receiving
886  * well-formed responses to RELAY cells.
887  *
888  * By default, or if a negative value is provided for one of these options,
889  * Tor uses reasonable defaults from the networkstatus consensus document.
890  * If no defaults are available there, these options default to 20, .80,
891  * .60, and 100, respectively.
892  */
894  double PathBiasNoticeUseRate;
895  double PathBiasExtremeUseRate;
896  int PathBiasScaleUseThreshold;
897  /** @} */
898 
899  int IPv6Exit; /**< Do we support exiting to IPv6 addresses? */
900 
901  /** Fraction: */
903 
904  /** What expiry time shall we place on our SSL certs? "0" means we
905  * should guess a suitable value. */
907 
908  /** How long (seconds) do we keep a guard before picking a new one? */
910 
911  /** Is this an exit node? This is a tristate, where "1" means "yes, and use
912  * the default exit policy if none is given" and "0" means "no; exit policy
913  * is 'reject *'" and "auto" (-1) means "same as 1, but warn the user."
914  *
915  * XXXX Eventually, the default will be 0. */
917 
918  /** For how long (seconds) do we declare our signing keys to be valid? */
920  /** For how long (seconds) do we declare our link keys to be valid? */
922  /** For how long (seconds) do we declare our auth keys to be valid? */
924 
925  /** How long before signing keys expire will we try to make a new one? */
927  /** How long before link keys expire will we try to make a new one? */
929  /** How long before auth keys expire will we try to make a new one? */
931 
932  /** Force use of offline master key features: never generate a master
933  * ed25519 identity key except from tor --keygen */
935 
936  enum {
937  FORCE_PASSPHRASE_AUTO=0,
938  FORCE_PASSPHRASE_ON,
939  FORCE_PASSPHRASE_OFF
940  } keygen_force_passphrase;
941  int use_keygen_passphrase_fd;
942  int keygen_passphrase_fd;
943  int change_key_passphrase;
944  char *master_key_fname;
945 
946  /** Autobool: Do we try to retain capabilities if we can? */
948 
949  /** Maximum total size of unparseable descriptors to log during the
950  * lifetime of this Tor process.
951  */
953 
954  /** If 1, we skip all OOS checks. */
956 
957  /** Autobool: Should we include Ed25519 identities in extend2 cells?
958  * If -1, we should do whatever the consensus parameter says. */
960 
961  /** Bool (default: 0): Tells if a %include was used on torrc */
963 
964  /** The seconds after expiration which we as a relay should keep old
965  * consensuses around so that we can generate diffs from them. If 0,
966  * use the default. */
968 
969  /** Bool (default: 0). Tells Tor to never try to exec another program.
970  */
971  int NoExec;
972 
973  /** Have the KIST scheduler run every X milliseconds. If less than zero, do
974  * not use the KIST scheduler but use the old vanilla scheduler instead. If
975  * zero, do what the consensus says and fall back to using KIST as if this is
976  * set to "10 msec" if the consensus doesn't say anything. */
978 
979  /** A multiplier for the KIST per-socket limit calculation. */
981 
982  /** The list of scheduler type string ordered by priority that is first one
983  * has to be tried first. Default: KIST,KISTLite,Vanilla */
985  /** An ordered list of scheduler_types mapped from Schedulers. */
987 
988  /** List of files that were opened by %include in torrc and torrc-defaults */
990 
991  /** If true, Tor shouldn't install any posix signal handlers, since it is
992  * running embedded inside another process.
993  */
995 
996  /** Autobool: Is the circuit creation DoS mitigation subsystem enabled? */
998  /** Minimum concurrent connection needed from one single address before any
999  * defense is used. */
1001  /** Circuit rate used to refill the token bucket. */
1003  /** Maximum allowed burst of circuits. Reaching that value, the address is
1004  * detected as malicious and a defense might be used. */
1006  /** When an address is marked as malicous, what defense should be used
1007  * against it. See the dos_cc_defense_type_t enum. */
1009  /** For how much time (in seconds) the defense is applicable for a malicious
1010  * address. A random time delta is added to the defense time of an address
1011  * which will be between 1 second and half of this value. */
1013 
1014  /** Autobool: Is the DoS connection mitigation subsystem enabled? */
1016  /** Maximum concurrent connection allowed per address. */
1018  /** When an address is reaches the maximum count, what defense should be
1019  * used against it. See the dos_conn_defense_type_t enum. */
1021 
1022  /** Autobool: Do we refuse single hop client rendezvous? */
1024 
1025  /** Interval: how long without activity does it take for a client
1026  * to become dormant?
1027  **/
1029 
1030  /** Boolean: true if having an idle stream is sufficient to prevent a client
1031  * from becoming dormant.
1032  **/
1034 
1035  /** Boolean: true if Tor should be dormant the first time it starts with
1036  * a datadirectory; false otherwise. */
1038  /**
1039  * Boolean: true if Tor should treat every startup event as cancelling
1040  * a possible previous dormant state.
1041  **/
1043 
1044  /**
1045  * Configuration objects for individual modules.
1046  *
1047  * Never access this field or its members directly: instead, use the module
1048  * in question to get its relevant configuration object.
1049  */
1051 };
1052 
1053 #endif /* !defined(TOR_OR_OPTIONS_ST_H) */
int KeyDirectoryGroupReadable
Definition: or_options_st.h:66
int DormantClientTimeout
int V3AuthUseLegacyKey
Declare the tor_cmdline_mode_t enumeration.
char * DirPortFrontPage
char * OwningControllerProcess
uint64_t MaxMemInQueues_low_threshold
struct config_line_t * TransPort_lines
char * AccountingRule_option
int DirAllowPrivateAddresses
int ClientBootstrapConsensusMaxInProgressTries
int TestingLinkKeySlop
int ExtORPortCookieAuthFileGroupReadable
int DirReqStatistics_option
int ExitPolicyRejectLocalInterfaces
uint16_t HTTPSProxyPort
uint64_t OwningControllerFD
struct smartlist_t * LongLivedPorts
char * PidFile
Definition: or_options_st.h:75
int ClientBootstrapConsensusFallbackDownloadInitialDelay
int HiddenServiceStatistics_option
struct config_line_t * ControlSocket
char * HTTPProxy
int TestingClientDownloadInitialDelay
struct config_line_t * DirPolicy
int HiddenServiceSingleHopMode
char * GeoIPFile
char * HTTPProxyAuthenticator
uint64_t PerConnBWRate
int CircuitBuildTimeout
char * Socks5ProxyPassword
int ClientPreferIPv6DirPort
char * ContactInfo
char * CookieAuthFile
int ReducedConnectionPadding
struct smartlist_t * NodeFamilySets
int ServerDNSDetectHijacking
char * DebugLogFile
Definition: or_options_st.h:57
int TestingServerDownloadInitialDelay
int EnforceDistinctSubnets
int DormantCanceledByStartup
struct config_line_t * AuthDirReject
int ServerDNSAllowBrokenConfig
int TrackHostExitsExpire
char * ControlPortWriteToFile
struct config_line_t * DNSPort_lines
struct config_line_t * HidServAuth
int TestingBridgeBootstrapDownloadInitialDelay
int PathBiasUseThreshold
int AllowNonRFC953Hostnames
int ExitPortStatistics
uint64_t MaxMemInQueues
struct config_line_t * RendConfigLines
int FetchServerDescriptors
int DormantOnFirstStartup
struct smartlist_t * AutomapHostsSuffixes
char * Socks5ProxyUsername
uint64_t RelayBandwidthRate
int ControlSocketsGroupWritable
int DoSRefuseSingleHopClientRendezvous
dirinfo_type_t PublishServerDescriptor_
int ExtraInfoStatistics
int MaxClientCircuitsPending
char * Socks4Proxy
int ConnDirectionStatistics
struct config_line_t * AlternateDirAuthority
struct config_line_t * DirPort_lines
struct config_line_t * AuthDirBadExit
int DoSCircuitCreationRate
int TestingBridgeDownloadInitialDelay
struct routerset_t * EntryNodes
Definition: or_options_st.h:83
int LogMessageDomains
Definition: or_options_st.h:50
int ServerDNSRandomizeCase
char * Address
Definition: or_options_st.h:74
struct routerset_t * ExitNodes
Definition: or_options_st.h:77
struct config_line_t * SocksPolicy
tor_addr_t Socks5ProxyAddr
struct smartlist_t * FirewallPorts
int MaxCircuitDirtiness
char * VirtualAddrNetworkIPv6
struct smartlist_t * WarnPlaintextPorts
dirinfo_type_t
Definition: or.h:891
Integer definitions used throughout Tor.
struct smartlist_t * RejectPlaintextPorts
struct config_line_t * DirAuthorities
tor_cmdline_mode_t
double DirAuthorityFallbackRate
int ServerDNSSearchDomains
struct routerset_t * ExcludeNodes
Definition: or_options_st.h:89
int TestingV3AuthInitialDistDelay
struct config_line_t * OutboundBindAddressOR
double KISTSockBufSizeFactor
int ShutdownWaitLength
int PathBiasCircThreshold
int RefuseUnknownExits
int ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay
struct config_line_t * ServerTransportOptions
struct config_line_t * HTTPTunnelPort_lines
int ExtendAllowPrivateAddresses
uint64_t ConstrainedSockSize
int SigningKeyLifetime
char * ExtORPortCookieAuthFile
char * ClientOnionAuthDir
int ExitPolicyRejectPrivate
char * AndroidIdentityTag
Definition: or_options_st.h:55
struct config_line_t * NATDPort_lines
struct config_line_t * MyFamily
struct config_line_t * ExtORPort_lines
int TestingAuthKeySlop
struct config_line_t * ControlPort_lines
int DoSConnectionEnabled
uint16_t TCPProxyPort
int TestingAuthKeyLifetime
uint64_t BandwidthRate
int FetchHidServDescriptors
char * KeyDirectory_option
Definition: or_options_st.h:63
int DisablePredictedCircuits
int CookieAuthentication
int ReloadTorrcOnSIGHUP
struct config_line_t * ServerTransportListenAddr
char * BridgePassword_AuthDigest_
struct routerset_t * MiddleNodes
Definition: or_options_st.h:80
struct config_line_t * ExitPolicy
struct config_line_t * ReachableAddresses
tor_addr_t Socks4ProxyAddr
Headers for address.h.
int UpdateBridgesFromAuthority
Master header file for Tor-specific functionality.
int UseDefaultFallbackDirs
char * SafeLogging
int GeoIPExcludeUnknown
uint64_t MaxAdvertisedBandwidth
struct smartlist_t * Schedulers
int ConnLimit_low_thresh
char * SyslogIdentityTag
Definition: or_options_st.h:54
struct routerset_t * HSLayer2Nodes
struct config_line_t * AlternateBridgeAuthority
int TestingClientMaxIntervalWithoutRequest
int DisableSignalHandlers
int LogTimeGranularity
Definition: or_options_st.h:48
int FetchDirInfoExtraEarly
struct config_suite_t * subconfigs_
int TestingLinkCertLifetime
char * VirtualAddrNetworkIPv4
struct config_line_t * NodeFamilies
char * Socks5Proxy
int ConnLimit_high_thresh
struct config_line_t * ServerTransportPlugin
int DoSCircuitCreationMinConnections
uint16_t Socks4ProxyPort
int LeaveStreamsUnattached
int TestingV3AuthInitialVoteDelay
struct config_line_t * Bridges
struct smartlist_t * SchedulerTypes_
int TestingClientConsensusDownloadInitialDelay
int ClientAutoIPv6ORPort
int AutomapHostsOnResolve
int UsingTestNetworkDefaults_
char * TransProxyType
uint64_t AccountingMax
int TestingServerConsensusDownloadInitialDelay
int DoSCircuitCreationDefenseType
char * BridgeDistribution
int ConstrainedSockets
int CacheDirectoryGroupReadable
Definition: or_options_st.h:71
struct config_line_t * Logs
Definition: or_options_st.h:46
char * Nickname
Definition: or_options_st.h:73
struct routerset_t * ExcludeExitNodes
Definition: or_options_st.h:93
int ControlPortFileGroupReadable
uint64_t PerConnBWBurst
struct config_line_t * AuthDirInvalid
struct smartlist_t * FilesOpenedByIncludes
struct smartlist_t * ServerDNSTestAddresses
int ServerDNSAllowNonRFC953Hostnames
char * CacheDirectory_option
Definition: or_options_st.h:68
int TestingDirConnectionMaxStall
int BridgeAuthoritativeDir
int TestingV3AuthInitialVotingInterval
int DisableDebuggerAttachment
int DoSCircuitCreationEnabled
int UseEntryGuards_option
tor_addr_t OutboundBindAddresses[OUTBOUND_ADDR_MAX][2]
int MaxConsensusAgeForDiffs
int ClientRejectInternalAddresses
int DoSCircuitCreationDefenseTimePeriod
struct smartlist_t * TrackHostExits
char * AccountingStart
double CircuitPriorityHalflife
int DataDirectoryGroupReadable
Definition: or_options_st.h:61
int LearnCircuitBuildTimeout
struct config_line_t * ReachableORAddresses
struct config_line_t * AddressMap
uint64_t RelayBandwidthBurst
int TestingEnableCellStatsEvent
char * DataDirectory_option
Definition: or_options_st.h:58
int V3AuthNIntervalsValid
uint64_t BandwidthBurst
int KISTSchedRunInterval
int ReducedCircuitPadding
struct config_line_t * SocksPort_lines
outbound_addr_t
Definition: or_options_st.h:28
tor_addr_t HTTPSProxyAddr
struct config_line_t * ORPort_lines
char * GuardfractionFile
int TestingV3AuthVotingStartOffset
int BridgeRecordUsageByCountry
char * CacheDirectory
Definition: or_options_st.h:70
int ClientBootstrapConsensusAuthorityDownloadInitialDelay
char * HTTPSProxyAuthenticator
int UnixSocksGroupWritable
char * BridgePassword
tor_addr_t TCPProxyAddr
char * V3BandwidthsFile
int PublishHidServDescriptors
struct config_line_t * FallbackDir
struct config_line_t * ReachableDirAddresses
int NumDirectoryGuards
struct routerset_t * ExcludeExitNodesUnion_
Definition: or_options_st.h:99
int DoSConnectionMaxConcurrentCount
int V3AuthVotingInterval
char * ServerDNSResolvConfFile
char * DataDirectory
Definition: or_options_st.h:60
char * KeyDirectory
Definition: or_options_st.h:65
int TestingEnableConnBwEvent
struct config_line_t * ClientTransportPlugin
int HiddenServiceStatistics
tor_cmdline_mode_t command
Definition: or_options_st.h:43
int DormantTimeoutDisabledByIdleStreams
int CircuitStreamTimeout
int ClientPreferIPv6ORPort
int DoSConnectionDefenseType
struct routerset_t * HSLayer3Nodes
int UseMicrodescriptors
char * command_arg
Definition: or_options_st.h:44
int V3AuthoritativeDir
struct config_line_t * OutboundBindAddressExit
struct config_line_t * HashedControlSessionPassword
struct smartlist_t * PublishServerDescriptor
int CountPrivateBandwidth
tor_addr_t HTTPProxyAddr
char * HTTPSProxy
tcp_proxy_protocol_t TCPProxyProtocol
int ClientDNSRejectInternalAddresses
uint16_t Socks5ProxyPort
uint64_t MaxUnparseableDescSizeToLog
int AllDirActionsPrivate
double PathsNeededToBuildCircuits
struct config_line_t * HashedControlPassword
int DoSCircuitCreationBurst
tcp_proxy_protocol_t
Definition: or_options_st.h:33
uint16_t HTTPProxyPort
int CircuitsAvailableTimeout
struct config_line_t * MyFamily_lines
int TokenBucketRefillInterval
enum or_options_t::@2 TransProxyType_parsed
int CookieAuthFileGroupReadable
int FetchUselessDescriptors
struct config_line_t * OutboundBindAddress
int TestingSigningKeySlop
int KeepBindCapabilities