aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson2014-03-05
|\ | | | | | | | | | | Conflicts: src/or/router.c src/test/test_dir.c
| * use router->addr for log messages and controller eventsRoger Dingledine2013-02-09
| | | | | | | | (rather than router->address)
* | Merge remote-tracking branch 'public/feature9777_024_squashed'Nick Mathewson2014-02-07
|\ \ | | | | | | | | | | | | Conflicts: src/or/circuitbuild.c
| * | Discard circuit paths on which nobody supports ntorNick Mathewson2014-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now this accounts for about 1% of circuits over all, but if you pick a guard that's running 0.2.3, it will be about 6% of the circuits running through that guard. Making sure that every circuit has at least one ntor link means that we're getting plausibly good forward secrecy on every circuit. This implements ticket 9777,
* | | Merge branch 'prop221_squashed_024'Nick Mathewson2013-11-01
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/or/or.h
| * | | Implement proposal 221: Stop sending CREATE_FASTNick Mathewson2013-11-01
| |/ / | | | | | | | | | | | | This makes FastFirstHopPK an AUTOBOOL; makes the default "auto"; and makes the behavior of "auto" be "look at the consensus."
* | | Make circpathbias and circuitbuild compile.Nick Mathewson2013-10-31
| | | | | | | | | | | | That was the tricky part
* | | Move pathbias functions into a new file.Nick Mathewson2013-10-31
| | | | | | | | | | | | Does not compile yet. This is the "no code changed" diff.
* | | Simply route length generation code.Nick Mathewson2013-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code had logic to use a shorter path length if we didn't have enough nodes. But we don't support 2-node networks anwyay. Fix for #9926. I'm not calling this a bugfix on any particular version, since a 2-node network would fail to work for you for a lot of other reasons too, and it's not clear to me when that began, or if 2-node networks would ever have worked.
* | | Separate mutable/const accessors for circuit_build_timesNick Mathewson2013-08-22
| | | | | | | | | | | | (These have proved invaluable for other global accessors.)
* | | Rename get_circuit_nbuild_* to end with _msNick Mathewson2013-08-22
| | |
* | | Make circ_times static and add accessor functions.vagrant2013-08-22
| | | | | | | | | | | | | | | | | | Change the global circ_times to a static variable and use accessor functions throughout the code, instead of accessing it directly.
* | | Rename circuit_get_global_list to remove trailing _Nick Mathewson2013-08-15
| | |
* | | Fix #9108 - make global_circuitlist a doubly linked listMarek Majkowski2013-06-20
| | |
* | | Don't access global_circuitlist variable directly. Use a getter instead.Marek Majkowski2013-06-20
|/ /
* | Bug 8235: Fix scaling adjustments.Mike Perry2013-04-24
| | | | | | | | | | | | We need to subtract both the current built circuits *and* the attempted circuits from the attempt count during scaling, since *both* have already been counted there.
* | Fix a wide lineNick Mathewson2013-04-03
| |
* | Add additional checks for Path Bias scaling.Mike Perry2013-04-03
| | | | | | | | | | Just in case more issues remain with scaling, it would be nice to pin-point them as such.
* | Bug #8196: Demote a path bias notice that can be caused by controllers.Mike Perry2013-03-29
| | | | | | | | We didn't see this in normal usage anyway.
* | Bug 8230: Mark circuits as opened before reachability testing.Mike Perry2013-03-29
| | | | | | | | Should silence two path bias Bug messages seen on relays at startup.
* | Add some missing case values to please clangNick Mathewson2013-03-27
| | | | | | | | | | | | | | | | | | It seems that some versions of clang that would prefer the -Wswitch-enum compiler flag to warn about switch statements with missing enum values, even if those switch statements have a default. Fixes bug 8598; bugfix on 0.2.4.10-alpha.
* | Bug 7065: Use $ for idhex instead of =Mike Perry2013-03-26
| |
* | Merge remote-tracking branch 'public/bug6174' into maint-0.2.4Nick Mathewson2013-03-18
|\ \
| * | Rename circuit_expire_all_dirty_circsNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | The new name is circuit_mark_all_dirty_circs_as_unusable. This resolves an XXX024
* | | Merge remote-tracking branch 'public/no_dup_guards' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \
| * | | Be more robust when excluding existing nodes as new dirguardsNick Mathewson2013-02-14
| | | | | | | | | | | | | | | | | | | | | | | | In addition to rejecting them post-hoc, avoid picking them in the first place. This makes us less likely to decide that we can't add guards at all.
* | | | Fix 8447: use %u to format circid_t.Nick Mathewson2013-03-10
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Now that circid_t is 4 bytes long, the default integer promotions will leave it alone when sizeof(int) == 4, which will leave us formatting an unsigned as an int. That's technically undefined behavior. Fixes bug 8447 on bfffc1f0fc7616a25c32da2eb759dade4651659e. Bug not in any released Tor.
* | | Downgrade an assert to LD_BUGNick Mathewson2013-02-19
| | | | | | | | | | | | | | | This should prevent crashes on further recurrence of 8065, and help diagnose such if they occur
* | | Merge remote-tracking branch 'public/wide_circ_ids'Nick Mathewson2013-02-15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/channel.h src/or/connection_or.c src/or/cpuworker.c
| * | | Allow a v4 link protocol for 4-byte circuit IDs.Nick Mathewson2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | Implements proposal 214. Needs testing.
* | | | Merge remote-tracking branch 'public/feature4994-rebased'Nick Mathewson2013-02-15
|\ \ \ \ | |_|/ / |/| | |
| * | | Restore the entry/dirguard distinction.Nick Mathewson2013-02-12
| | | | | | | | | | | | | | | | | | | | We shouldn't be calling choose_random_entry() for directory conncetions; that's what choose_random_dirguard() is for.
| * | | generalize choose_random_entry()'s dirinfo parameterRoger Dingledine2013-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we can specify to skip bridges that wouldn't be able to answer the type of dir fetch we're launching. It's still the responsibility of the rest of the code to prevent us from launching a given dir fetch if we have no bridges that could handle it.
| * | | use microdescriptors if *any* of our bridges can handle themRoger Dingledine2013-02-02
| | | | | | | | | | | | | | | | | | | | | | | | Now as we move into a future where most bridges can handle microdescs we will generally find ourselves using them, rather than holding back just because one of our bridges doesn't use them.
* | | | Avoid null-pointer deref in pathbias_is_new_circ_attemptNick Mathewson2013-02-11
| |_|/ |/| | | | | | | | | | | Coverity is worried about this (CID 980653). It hasn't happened in testing, but we might as well make sure it can't happen.
* | | Mention a trac ticket relevant to an XXX comment.Mike Perry2013-02-07
| | |
* | | Better document an XXX comment about refactoring.Mike Perry2013-02-07
| | |
* | | Separate the flags for logging use bias.Mike Perry2013-02-07
| | | | | | | | | | | | | | | I think we want both sets of messages to appear independently to help us know what needs tuning.
* | | Lower path use bias thresholds.Mike Perry2013-02-04
| | | | | | | | | | | | I noticed bad wifi networks can have low use success rates.
* | | Reinstate some fixes/tweaks from 6e4a4002Nick Mathewson2013-02-04
|/ / | | | | | | | | | | | | These seem to have gotten conflicted out of existence while mike was working on path bias stuff. Thanks to sysrqb for collecting these in a handy patch.
* | Fix a couple of warnings on the 8081 branch.Nick Mathewson2013-02-01
| |
* | Increment an informational counter for use failed state.Mike Perry2013-02-01
| | | | | | | | | | This informational counter is probably now redundant, but might as well keep it consistent I guess.
* | Fix a log typo found by sysrqb.Mike Perry2013-02-01
| |
* | Refactor code that rolls back the use stateMike Perry2013-02-01
| | | | | | | | | | | | Also document it better. Mention this refactoring in the comments for the path state machine.
* | Refactor and rename pathbias rate evaluation.Mike Perry2013-02-01
| |
* | Refactor the scaling parameter fetching into a single function.Mike Perry2013-02-01
| | | | | | | | | | Also, deprecate the torrc options for the scaling values. It's unlikely anyone but developers will ever tweak them, even if we provided a single ratio value.
* | Mark entry guard state dirty everwhere the pathbias code touches it.Mike Perry2013-02-01
| |
* | Add a tristate to guard against unexpected circ purpose transitionsMike Perry2013-02-01
| |
* | Clarify state transition and related pathbias commentsMike Perry2013-02-01
| |
* | Bug 8024: Check for null/closed channel before probing.Mike Perry2013-01-22
| |