aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
AgeCommit message (Collapse)Author
2015-02-06Control: getinfo entry-guards report down-sinceDavid Goulet
If the guard unreachable_since variable was set, the status "up" was reported which is wrong. This adds the "down" status followed by the unreachable_since time value. Fixes #14184 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-01-31Only retry connecting to configured bridgesMatthew Finkel
After connectivity problems, only try connecting to bridges which are currently configured; don't mark bridges which we previously used but are no longer configured. Fixes 14216. Reported by and fix provided by arma.
2015-01-18Merge remote-tracking branch 'public/bug12485'Nick Mathewson
2015-01-09Allow two ISO times to appear in EntryGuardDownSince.Nick Mathewson
When I made time parsing more strict, I broke the EntryGuardDownSince line, which relied on two concatenated ISO times being parsed as a single time. Fixes bug 14136. Bugfix on 7984fc153112baa5. Bug not in any released version of Tor.
2015-01-07Lower the delay before saving guard status to diskNick Mathewson
"Maybe this time should be reduced, since we are considering guard-related changes as quite important? It would be a pity to settle on a guard node, then close the Tor client fast and lose that information." Closes 12485.
2015-01-07Turn entry_guards_changed constants into symbolic constantsNick Mathewson
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-11-04Merge remote-tracking branch 'andrea/ticket6456'Nick Mathewson
Somewhat tricky conflicts: src/or/config.c Also, s/test_assert/tt_assert in test_config.c
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-10-08Improve DIRINFO flags' usage commentsteor
Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in functions which take them as arguments. Replace 0 with NO_DIRINFO in a function call for clarity. Seeks to prevent future issues like 13163.
2014-09-22Merge remote-tracking branch 'public/bug7733a'Nick Mathewson
2014-09-01Avoid unsigned/sign compare warning from last patch.Nick Mathewson
2014-09-01Bounds check while looping over a fixed size table or arrayPhilip Van Hoof
(Edited to use existing ARRAY_LENGTH macro --nickm)
2014-08-20Unit testing entry_is_time_to_retry().rl1987
2014-08-20Write comments for members of periods array.rl1987
2014-08-20Rewriting entry_is_time_to_retry() using table approach.rl1987
2014-07-25Add some mocks needed to unit test ↵Andrea Shepard
ClientTransportPlugin/ServerTransportPlugin config line parsing
2014-07-24Merge branch 'maint-0.2.5'Roger Dingledine
2014-07-24Merge branch 'maint-0.2.4' into maint-0.2.5Roger Dingledine
2014-07-24add a NumDirectoryGuards consensus param tooRoger Dingledine
2014-07-24Add and use a new NumEntryGuards consensus parameter.Roger Dingledine
When specified, it overrides our default of 3 entry guards. (By default, it overrides the number of directory guards too.) Implements ticket 12688.
2014-07-16Fix wide lines, make entry_is_live() non-inlineNick Mathewson
2014-06-25Change the interface of entry_is_live() to take a bitmap.George Kadianakis
2014-06-25Basic entry_is_live() unittest.George Kadianakis
2014-06-15Document choose_random_entry_impl() and populate_live_entry_guards().George Kadianakis
2014-06-15Make a few entrynodes.c functions testable.George Kadianakis
2014-06-15Make populate_live_entry_guards() more smoothly testable.George Kadianakis
2014-06-15Constify aggressively in populate_live_entry_guards().George Kadianakis
2014-06-15Fix the functionality of populate_live_entry_guards().George Kadianakis
2014-06-15Move code from choose_random_entry_impl() to the new function.George Kadianakis
This commit only _moves_ code.
2014-06-15Create skeleton for populate_live_entry_guards().George Kadianakis
Now we are ready to move code from choose_random_entry_impl() to it.
2014-06-15choose_random_entry_impl(): Remove useless consider_exit_family.George Kadianakis
The variable was useless since it was only toggled off in disabled code. If the 'exit_family' smartlist is empty, we don't consider exit family anyway.
2014-06-15Remove a piece of disabled code in choose_random_entry_impl().George Kadianakis
2014-05-14Would-be fix for bug 7733: learn bridge ID from descriptorNick Mathewson
If somebody has configured a client to use a bridge without setting an identity digest (not recommended), learn the identity digest from whatever bridge descriptor we have downloaded or have in our cache.
2014-05-01Merge remote-tracking branch 'public/bug10849_025'Nick Mathewson
Conflicts: src/or/config.c
2014-04-23Merge remote-tracking branch 'public/bug9229_025'Nick Mathewson
Conflicts: src/or/entrynodes.c
2014-04-08Make num_bridges_usable work properly.Nick Mathewson
My first implementation was broken, since it returned "whether there is one bridge" rather than "how many bridges." Also, the implementation for the n_options_out feature in choose_random_entry_impl was completely broken due to a missing *.
2014-03-11Merge remote-tracking branch 'asn/bug11069_take2'Nick Mathewson
2014-03-10Throw control port warning if we failed to connect to all our bridges.George Kadianakis
2014-03-10Fix our check for the "first" bridge descriptor.Nick Mathewson
This is meant to be a better bug 9229 fix -- or at least, one more in tune with the intent of the original code, which calls router_retry_directory_downloads() only on the first bridge descriptor.
2014-03-10Update ns downloads when we receive a bridge descriptorNick Mathewson
This prevents long stalls when we're starting with a state file but with no bridge descriptors. Fixes bug 9229. I believe this bug has been present since 0.2.0.3-alpha.
2014-03-05Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson
Conflicts: src/or/router.c src/test/test_dir.c
2014-02-11Remove TunnelDirConns and PreferTunnelledDirConnsNick Mathewson
These options were added back in 0.1.2.5-alpha, but no longer make any sense now that all directories support tunneled connections and BEGIN_DIR cells. These options were on by default; now they are always-on. This is a fix for 10849, where TunnelDirConns 0 would break hidden services -- and that bug arrived, I think, in 0.2.0.10-alpha.
2013-12-09Fix get_configured_bridge_by_addr_port_digest(.,.,NULL)rl1987
The old behavior was that NULL matched only bridges without known identities; the correct behavior is that NULL should match all bridges (assuming that their addr:port matches).
2013-10-31Add missing includes for circpathbias.hNick Mathewson
2013-10-29Merge remote-tracking branch 'public/bug5018'Nick Mathewson
Conflicts: src/or/entrynodes.c
2013-10-29Simplify transport_is_needed.David Fifield
By Roger at https://trac.torproject.org/projects/tor/ticket/5018#comment:11.
2013-10-29Only launch transport proxies that provide useful transports.George Kadianakis
2013-10-21DROPGUARDS controller commandNick Mathewson
Implements ticket 9934; patch from "ra"
2013-10-12Merge branch 'maint-0.2.4'Roger Dingledine