aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
AgeCommit message (Collapse)Author
2016-03-26Whitespace fixesNick Mathewson
2016-03-24Always allow OR connections to bridges on private addressesteor (Tim Wilson-Brown)
Regardless of the setting of ExtendAllowPrivateAddresses. This fixes a bug with pluggable transports that ignore the (potentially private) address in their bridge line. Fixes bug 18517; bugfix on 23b088907f in tor-0.2.8.1-alpha.
2016-02-27Update the copyright year.Nick Mathewson
2016-02-20If both IPv4 and IPv6 addresses could be used, choose one correctlyteor (Tim Wilson-Brown)
If there is a node, use node_ipv6_or/dir_preferred(). If there is no node, use fascist_firewall_prefer_ipv6_or/dirport().
2016-02-11make check-spacesNick Mathewson
2016-02-03Make bridge clients prefer the configured bridge addressteor (Tim Wilson-Brown)
When ClientPreferIPv6ORPort is auto, bridges prefer the configured bridge ORPort address. Otherwise, they use the value of the option. Other clients prefer IPv4 ORPorts if ClientPreferIPv6ORPort is auto. When ClientPreferIPv6DirPort is auto, all clients prefer IPv4 DirPorts.
2016-01-29Merge branch 'feature17840-v11-squashed' into feature17840-v11-mergedteor (Tim Wilson-Brown)
Conflicts: src/or/directory.c src/test/test_routerlist.c Fix minor conflicts.
2016-01-29Make entry_guard_set_status consistent with entry_is_liveteor (Tim Wilson-Brown)
Check fascist_firewall_allows_node in entry_guard_set_status and return the same message as entry_is_live.
2016-01-29Choose bridge addresses by IPv4/IPv6 preferencesteor (Tim Wilson-Brown)
2016-01-29Add ClientUseIPv4 and ClientPreferIPv6DirPort torrc optionsteor (Tim Wilson-Brown)
ClientUseIPv4 0 tells tor to avoid IPv4 client connections. ClientPreferIPv6DirPort 1 tells tor to prefer IPv6 directory connections. Refactor policy for IPv4/IPv6 preferences. Fix a bug where node->ipv6_preferred could become stale if ClientPreferIPv6ORPort was changed after the consensus was loaded. Update documentation, existing code, add unit tests.
2016-01-26Correct grammatical errors in tor commentsteor (Tim Wilson-Brown)
Avoid using gender for things that don't have it. Avoid assigning a gender to tor users.
2015-12-16Prop210: Add want_authority to directory_get_from_dirserverteor (Tim Wilson-Brown)
2015-04-23Fix some conversion problemsNick Mathewson
2015-04-21Add crypto_rand_int_range() and use itDavid Goulet
Incidently, this fixes a bug where the maximum value was never used when only using crypto_rand_int(). For instance this example below in rendservice.c never gets to INTRO_POINT_LIFETIME_MAX_SECONDS. int intro_point_lifetime_seconds = INTRO_POINT_LIFETIME_MIN_SECONDS + crypto_rand_int(INTRO_POINT_LIFETIME_MAX_SECONDS - INTRO_POINT_LIFETIME_MIN_SECONDS); Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-01Bridges are always dirsSebastian Hahn
This check was accidentally deleted in 05f7336624d6a47b3cf0fe82.
2015-04-01mark dirinfo_type as unused in populate_live_entry_guardsNick Mathewson
2015-03-24Remove version checks for microdescriptor supportNick Mathewson
At this point, relays without microdescriptor support are no longer allowed on the Tor network.
2015-03-24Stop checking for torrc state files generated by very old Tor versionsNick Mathewson
These haven't worked in so long that if you had a state file of this kind, the guards in it would be so old that you wouldn't use them anyway.
2015-02-18Fix an implicit-narrowing warningNick Mathewson
2015-02-18Merge branch 'bug9321_rerebase'Nick Mathewson
Conflicts: src/or/dirvote.h src/test/include.am src/test/test_entrynodes.c
2015-02-18Calculate the guardfraction bandwidth of a guard.George Kadianakis
2015-02-18Parse GuardFraction info from consensuses and votes.George Kadianakis
Also introduce the UseGuardFraction torrc option which decides whether clients should use guardfraction information found in the consensus.
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