aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
AgeCommit message (Collapse)Author
2018-04-09Add a comment explaining why we do a certain redundant checkNick Mathewson
Closes ticket 25291.
2018-04-05Switch to use should_record_bridge_info()Neel Chauhan
Both in geoip_note_client_seen() and options_need_geoip_info(), switch from accessing the options directly to using the should_record_bridge_info() helper function. Fixes #25290 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-03-19Use tor_asprintf for in have_enough_mem_for_dircache()Neel Chauhan
(Fixes bug 20887)
2018-03-19Merge branch 'ticket25268_034_01'Nick Mathewson
2018-03-03Merge branch 'ticket23814' into maint-0.3.3Nick Mathewson
2018-02-15man: Update the CircuitPriorityHalflife entryDavid Goulet
The behavior has changed slightly in the previous commits. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-15cmux: Rename cell_ewma_set_scale_factor()David Goulet
It is rename to something more meaningful that explains what it does exactly which is sets the EWMA options (currently only one exists). The new name is cmux_ewma_set_options(). Also, remove a public function from circuitmux_ewma.h that is only used in the C file. Make it static inline as well. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-15cmux: Make EWMA policy mandatoryDavid Goulet
To achieve this, a default value for the CircuitPriorityHalflife option was needed. We still look in the options and then the consensus but in case no value can be found, the default CircuitPriorityHalflifeMsec=30000 is used. It it the value we've been using since 0.2.4.4-alpha. This means that EWMA, our only policy, can not be disabled anymore fallbacking to the round robin algorithm. Unneeded code to control that is removed in this commit. Part of #25268 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-07Remove anything related to the old SocksSockets optionDavid Goulet
At this commit, the SocksSocketsGroupWritable option is renamed to UnixSocksGroupWritable. A deprecated warning is triggered if the old option is used and tor will use it properly. Fixes #24343 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2018-01-31Obsolete the now-unused MaxTries options.Nick Mathewson
2018-01-31Merge branch 'bug23954_squashed'Nick Mathewson
2018-01-31Use thread-safe types to store the LOG_PROTOCOL_WARN severityNick Mathewson
Fixes a race condition; resolves 23954.
2018-01-30Merge branch 'ticket24902_029_05' into ticket24902_033_02David Goulet
2018-01-30dos: Make circuit rate limit per second, not tenths anymoreDavid Goulet
Because this touches too many commits at once, it is made into one single commit. Remove the use of "tenths" for the circuit rate to simplify things. We can only refill the buckets at best once every second because of the use of approx_time() and our token system is set to be 1 token = 1 circuit so make the rate a flat integer of circuit per second. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-30dos: Initial code of Denial of Service mitigationDavid Goulet
This commit introduces the src/or/dos.{c|h} files that contains the code for the Denial of Service mitigation subsystem. It currently contains basic functions to initialize and free the subsystem. They are used at this commit. The torrc options and consensus parameters are defined at this commit and getters are implemented. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-19Merge remote-tracking branch 'mikeperry/bug23101-mergeready-squashed'Nick Mathewson
2018-01-19Implement layer 2 and layer 3 guard pinning via torrc.Mike Perry
Block circuit canibalization when HSRendezvousMiddleNodes is active. Also make it apply to all HS circuits, not just rends.
2018-01-19Merge branch 'disable_signal_handlers'Nick Mathewson
2018-01-11Merge branch 'restart_nocrash'Nick Mathewson
2018-01-11Merge branch 'simplify_transition_allowed'Nick Mathewson
2018-01-06whitespace and typo fixesRoger Dingledine
2018-01-05Merge branch 'maint-0.3.2'Nick Mathewson
2018-01-05Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-01-05Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2018-01-05Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2018-01-05Merge branch 'teor_ticket24681_028' into maint-0.2.9Nick Mathewson
2018-01-05fix a wide lineNick Mathewson
2017-12-23Make the default DirAuthorityFallbackRate 0.1teor
This makes clients on the public tor network prefer to bootstrap off fallback directory mirrors. This is a follow-up to 24679, which removed weights from the default fallbacks. Implements ticket 24681.
2017-12-16Add MainloopStats option.Alexander Færøy
This patch adds support for MainloopStats that allow developers to get main event loop statistics via Tor's heartbeat status messages. The new status log message will show how many succesful, erroneous, and idle event loop iterations we have had. See: https://bugs.torproject.org/24605
2017-12-16Fix additional whitespace in config module comment.Alexander Færøy
2017-12-15Use same macros to simplify options_transition_affects_*Nick Mathewson
2017-12-15Simplify the very repetitious options_transition_allowed()Nick Mathewson
2017-12-15Add an option to disable signal handler installation.Nick Mathewson
Closes ticket 24588.
2017-12-12Merge remote-tracking branch 'ahf-oniongit/bugs/24362'Nick Mathewson
2017-12-11Mark libevent unitialized on shutdown.Nick Mathewson
This is necessary so that we will reinitialize it on startup.
2017-12-11Add support for Android's logging subsystem.Alexander Færøy
This patch adds support for Android's logging subsystem in Tor. When debugging Android applications it is useful to be able to collect information about the application running on the platform via the various system services that is available on the platform. This patch allows you to add "Log notice android" to your torrc and have Tor send everything above and including the notice severity to Android's ring buffer which can be inspected using the 'adb logcat' program. See: https://bugs.torproject.org/24362
2017-12-11Restructure log initilization function to allow multiple backends without ↵Alexander Færøy
arguments. This patch ensures that we more easily can extend our log backends that does not take any additional argument other than a single keyword. This patch is mostly reindentation of some code which is why it is split out into its own patch. See: https://bugs.torproject.org/24362
2017-12-11Update the comment in options_transition_affects_guards()teor
It referred to the an old function name. Fixes #24575, bugfix on 0.3.0.
2017-12-08Merge branch 'macro_free_v2_squashed'Nick Mathewson
2017-12-08Convert remaining function (mostly static) to new free styleNick Mathewson
2017-12-08Update free functions into macros: src/or/ part 1Nick Mathewson
This covers addressmap.h (no change needed) through confparse.h
2017-12-05Merge branch 'more_directories_squashed'Nick Mathewson
2017-12-05Implement the various get_foodir_*() functions.Nick Mathewson
2017-12-05Create a CacheDirectory and KeyDirectory options.Nick Mathewson
They work the same as DataDirectory, but default slightly different. Tor is not actually updated to use them yet.
2017-12-05Extract common code for creating the keys directory.Nick Mathewson
This had somehow gotten duplicated between router.c and routerkeys.c
2017-12-05Extract the code that creates the datadir into a separate function.Nick Mathewson
2017-11-29Merge branch 'maint-0.3.2'Nick Mathewson
2017-11-29Merge branch 'bug24050_029_squashed' into maint-0.3.2Nick Mathewson
2017-11-29Make the cache_ipv4_answers default become 0 again, for real.Nick Mathewson
Fortunately, use_cached_ipv4_answers was already 0, so we wouldn't actually use this info, but it's best not to have it. Fixes bug 24050; bugfix on 0.2.6.3-alpha