aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* bump to 0.2.4.10-alphaRoger Dingledine2013-02-04
|
* Merge branch 'authdir_quick_fix'Nick Mathewson2013-02-04
|\
| * Quick fix on 5956 for authoritiesNick Mathewson2013-02-04
| | | | | | | | | | | | | | | | Authorities don't set is_possible_guard on node_t, so they were never deciding that they could build enough paths. This is a quick and dirty fix. Bug not in any released version of Tor
* | Merge branch 'bug8146_etc'Nick Mathewson2013-02-04
|\ \ | |/ |/|
| * When we mark a node as a sybil, mark it down and reset its uptime to 0Nick Mathewson2013-02-04
| | | | | | | | | | | | | | This prevents bug 8147, where such nodes would accrue points towards Guard, Fast, HSDir, and so on. Fixes bug 8147.
| * Ignore tiny bandwidths entirely when computing thresholdsNick Mathewson2013-02-04
| | | | | | | | Another bug 8145 fix.
| * Increase the minimum value for the Fast flag to 4096.Nick Mathewson2013-02-04
| | | | | | | | Fix for 8145.
| * Refactor should-count-towards-thresholds test into new functionNick Mathewson2013-02-04
| |
| * When computing performance thresholds, ignore omitted-as-sybil nodes.Nick Mathewson2013-02-04
| | | | | | | | Fixes bug 8146.
* | Merge branch 'bug8153'Nick Mathewson2013-02-04
|\ \
| * | Fix a warning when building with --disable-curve25519Nick Mathewson2013-02-04
| | | | | | | | | | | | | | | It appears that the code for 7291 gave an unused-value warning when built with --disable-curve25519.
| * | Fix compilation with --disable-curve25519 optionNick Mathewson2013-02-04
| |/ | | | | | | | | | | | | | | | | The fix is to move the two functions to format/parse base64 curve25519 public keys into a new "crypto_format.c" file. I could have put them in crypto.c, but that's a big file worth splitting anyway. Fixes bug 8153; bugfix on 0.2.4.8-alpha where I did the fix for 7869.
* / 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.
* Whoops: evdns_log, not tor_log, in src/ext/eventdns.cNick Mathewson2013-02-04
|
* Merge remote-tracking branch 'public/feature7706'Nick Mathewson2013-02-01
|\
| * When excluding nodes by country, exclude {??} and {A1} tooNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is ticket 7706, reported by "bugcatcher." The rationale here is that if somebody says 'ExcludeNodes {tv}', then they probably don't just want to block definitely Tuvaluan nodes: they also want to block nodes that have unknown country, since for all they know such nodes are also in Tuvalu. This behavior is controlled by a new GeoIPExcludeUnknown autobool option. With the default (auto) setting, we exclude ?? and A1 if any country is excluded. If the option is 1, we add ?? and A1 unconditionally; if the option is 0, we never add them. (Right now our geoip file doesn't actually seem to include A1: I'm including it here in case it comes back.) This feature only takes effect if you have a GeoIP file. Otherwise you'd be excluding every node.
* | Merge remote-tracking branch 'public/bug7708_023_v3_squashed'Nick Mathewson2013-02-01
|\ \
| * | Clarify documentation of connection_finished_flushingNick Mathewson2013-02-01
| | |
| * | Fix serious breakage in connection_handle_write_implNick Mathewson2013-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we first implemented TLS, we assumed in conneciton_handle_write that a TOR_TLS_WANT_WRITE from flush_buf_tls meant that nothing had been written. But when we moved our buffers to a ring buffer implementation back in 0.1.0.5-rc (!), we broke that invariant: it's possible that some bytes have been written but nothing. That's bad. It means that if we do a sequence of TLS writes that ends with a WANTWRITE, we don't notice that we flushed any bytes, and we don't (I think) decrement buckets. Fixes bug 7708; bugfix on 0.1.0.5-rc
* | | Fix a couple of warnings on the 8081 branch.Nick Mathewson2013-02-01
| | |
* | | Add EntryGuardPathUseBias to state file keyword list.Mike Perry2013-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.
* | | Rename and relocate the bw weight scale param getter.Mike Perry2013-02-01
| | | | | | | | | | | | It had nothing to do with circuit build times.
* | | Fix a log typo found by sysrqb.Mike Perry2013-02-01
| | |
* | | Bounds-check path bias rate parameters.Mike Perry2013-02-01
| | | | | | | | | | | | The other remaining parameters don't really need range checks.
* | | 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
| | |
* | | Merge branch 'rename_log_7599'Nick Mathewson2013-02-01
|\ \ \
| * | | fix wide lines from tor_log renameNick Mathewson2013-02-01
| | | |
| * | | Fix a silly mistake in the tor_mathlog() documentation. Give it a unit test.Nick Mathewson2013-02-01
| | | |
| * | | Remove old wrapper code and defines for keeping log() and log(3) apartNick Mathewson2013-02-01
| | | | | | | | | | | | | | | | This is the non-automated portion of bug 7599.
| * | | Rename log() to tor_log() for loggingNick Mathewson2013-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is meant to avoid conflict with the built-in log() function in math.h. It resolves ticket 7599. First reported by dhill. This was generated with the following perl script: #!/usr/bin/perl -w -i -p s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g; s/\blog\(/tor_log\(/g;
* | | | Help us track bug 8093:Roger Dingledine2013-02-01
|/ / / | | | | | | | | | | | | Improve the log message when "Bug/attack: unexpected sendme cell from client" occurs.
* | | typo in crypto_curve25519.c comment, spotted by rransomNick Mathewson2013-01-31
| | |
* | | whitespace fixNick Mathewson2013-01-31
| | |
* | | Merge branch 'double-0-check'Nick Mathewson2013-01-31
|\ \ \
| * | | Detect platforms where memset(0) doesn't set doubles to 0.0.Nick Mathewson2013-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is allowed by the C statndard, which permits you to represent doubles any way you like, but in practice we have some code that assumes that memset() clears doubles in structs. Noticed as part of 7802 review; see 8081 for more info.
* | | | Use %d, not %02d, for decimal percentagesNick Mathewson2013-01-30
| | | | | | | | | | | | | | | | Cosmetic tweak on 5956; not in any released tor.
* | | | Rename all of the macros in tor_queue.h to start with TOR_Nick Mathewson2013-01-30
| | | |
* | | | Merge branch 'bug5956_squashed'Nick Mathewson2013-01-30
|\ \ \ \ | |/ / / |/| | |
| * | | Parameterize FRAC_USABLE_NEEDED for fraction of circuitsNick Mathewson2013-01-30
| | | | | | | | | | | | | | | | | | | | | | | | Instead of hardcoding the minimum fraction of possible paths to 0.6, we take it from the user, and failing that from the consensus, and failing that we fall back to 0.6.
| * | | Compute whether we're ready to build circuits based on fraction of pathsNick Mathewson2013-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we did this based on the fraction of descriptors we had. But really, we should be going based on what fraction of paths we're able to build based on weighted bandwidth, since otherwise a directory guard or two could make us behave quite oddly. Implementation for feature 5956
| * | | Add an optional out-arg to count_usable_descriptorsNick Mathewson2013-01-30
| | | | | | | | | | | | | | | | | | | | This way we get the usable nodes themselves, so we can feed them into frac_nodes_with_descriptors
| * | | Add a function to compute fraction of nodes (by weighted bw) with descriptorsNick Mathewson2013-01-30
| | | |
| * | | Split smartlist_choose_node_by_bandwidth_weightsNick Mathewson2013-01-18
| | | | | | | | | | | | | | | | | | | | | | | | This is a minimal refactoring to expose the weighted bandwidth calculations for each node so I can use them to see what fraction of nodes, weighted by bandwidth, we have descriptors for.
* | | | Fix unit test to not expect v2 directory request geoip infoNick Mathewson2013-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When we implemented #5823 and removed v2 directory request info, we never actually changed the unit tests not to expect it. Fixes bug 8084; bug not in any released version of Tor.