aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* 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.
| * Add some code to bluntly prevent duplicate guards from getting addedNick Mathewson2013-02-14
| | | | | | | | | | | | Apparently something in the directory guard code made it possible for the same node to get added as a guard over and over when there were no actual running guard nodes.
* | Merge remote-tracking branch 'public/bug8059' into maint-0.2.4Nick Mathewson2013-03-18
|\ \
| * | Fix a framing bug when reading versions from a versions cell.Nick Mathewson2013-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our ++ should have been += 2. This means that we'd accept version numbers even when they started at an odd position. This bug should be harmless in practice for so long as every version number we allow begins with a 0 byte, but if we ever have a version number starting with 1, 2, 3, or 4, there will be trouble here. Fix for bug 8059, reported pseudonymously. Bugfix on 0.2.0.10-alpha -- specifically, commit 6fcda529, where during development I increased the width of a version to 16 bits without changing the loop step.
* | | Remove an unused local variable.Nick Mathewson2013-03-18
| | |
* | | Check return values from fcntl and setsockoptNick Mathewson2013-03-18
| | | | | | | | | | | | (Based on a patch from flupzor; bug #8206)
* | | Check for 0.2.4.8, not 0.2.4.7, to determine EXTEND2 supportNick Mathewson2013-03-18
| | | | | | | | | | | | Fixes bug 8464; bugfix on b2863739 in 0.2.4.8-alpha
* | | Merge remote-tracking branch 'public/bug8180_023_v2' into maint-0.2.4Nick Mathewson2013-03-15
|\ \ \
| * | | Upgrade the warn for EntryNodes without UseEntryGuards to an errorNick Mathewson2013-03-15
| | | | | | | | | | | | | | | | fixes bug 8180
* | | | Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4Nick Mathewson2013-03-15
|\ \ \ \
| * | | | Remove some functions which were unused except for their testsNick Mathewson2013-02-23
| | | | |
| * | | | Remove some totally unused functionsNick Mathewson2013-02-23
| | | | |
| * | | | Remove a bunch of unused macro definitionsNick Mathewson2013-02-23
| | | | |
* | | | | Fix some basic socket issues with tor-fw-helper-natpmp on windowsNick Mathewson2013-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't going to be the last of these issues, but we might as well take the fixes as we find them. Patch from Gisle Vanem, fixes bug 7280.
* | | | | Fix brackets in tor-fw-helper help output.David Fifield2013-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change nesting from [(]) to [()]. Formerly it made it look to me at first glance that "internal port" was optional. [Trivial change; fixes #7767 --nickm]
* | | | | Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTINGNick Mathewson2013-03-14
| | | | |
* | | | | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-03-11
|\ \ \ \ \ | | |/ / / | |/| / / | |_|/ / |/| | |
| * | | Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson2013-03-11
| |\ \ \
| | * | | Update to the March 2013 GeoIP database.Karsten Loesing2013-03-07
| | | | |
| * | | | oops; add a missing semicolonNick Mathewson2013-02-12
| | | | | | | | | | | | | | | | | | | | (Cherry-picked from fc35ee4910326dc1ae718482b30e57666a71df85)
* | | | | start part-way through the ssl cert lifetimeRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | also, snap the start time and end time to a day boundary, since most certs in the wild seem to do this.
* | | | | randomize SSLKeyLifetime by defaultRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | | | | | resolves ticket 8443.
* | | | | parameterize SSLKeyLifetimeRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | | | | | no actual changes in behavior yet
* | | | | Merge remote-tracking branch 'arma/bug6783_big_hammer' into maint-0.2.4Nick Mathewson2013-03-10
|\ \ \ \ \
| * | | | | set DisableV2DirectoryInfo_ off by defaultRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since it's only enableable by authorities, nobody else would be able to start their tor
| * | | | | Tweak bug6783 patch.Nick Mathewson2013-03-10
| | | | | |
| * | | | | Add a DisableV2DirectoryInfo_ option to 404 all v2 ns requestsNick Mathewson2013-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have no idea whether b0rken clients will DoS the network if the v2 authorities all turn this on or not. It's experimental. See #6783 for a description of how to test it more or less safely, and please be careful!
* | | | | | Fix typos in a few log messagesBenjamin Kerensa2013-03-10
|/ / / / /
* | | | | 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.
* | | | | Correctly set entry->is_dir_cache when adding an entry guard for the first timeAndrea Shepard2013-03-01
| | | | | | | | | | | | | | | | | | | | (Second part of a bug8367 fix. -NM)
* | | | | Fix bootstrapping with bridges by making is_dir_cache is set on them.Nick Mathewson2013-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug 8367, introduced in d7089ff228227259137b5a8b. Not in any released Tor.
* | | | | Fix a comment in tor_main.cNick Mathewson2013-02-25
| |_|/ / |/| | | | | | | | | | | We don't use subversion or src/*/makefile.am any longer
* | | | fix a wide lineNick Mathewson2013-02-19
| | | |
* | | | Merge branch 'bug8065_v2'Nick Mathewson2013-02-19
|\ \ \ \
| * | | | 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
* | | | | Fix a may-be-used-uninitialized warning.Nick Mathewson2013-02-19
| | | | |
* | | | | Merge branch 'bug2286_unit_test_squashed'Nick Mathewson2013-02-19
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Test alternate values of maxunmeasuredbw tooAndrea Shepard2013-02-19
| | | | |
| * | | | Update unmeasured bandwidth clipping unit test per NickM's bugfix for the ↵Andrea Shepard2013-02-19
| | | | | | | | | | | | | | | | | | | | Unmeasured=1 issue
| * | | | Refactor storing of measured_bw versus Unmeasured=1.Nick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch moves the measured_bw field and the has_measured_bw field into vote_routerstatus_t, since only votes have 'Measured=XX' set on their weight line. I also added a new bw_is_unmeasured flag to routerstatus_t to represent the Unmeasured=1 flag on a w line. Previously, I was using has_measured_bw for this, which was quite incorrect: has_measured_bw means that the measured_bw field is set, and it's probably a mistake to have it serve double duty as meaning that 'baandwidth' represents a measured value. While making this change,I also found a harmless but stupid bug in dirserv_read_measured_bandwidths: It assumes that it's getting a smartlist of routerstatus_t, when really it's getting a smartlist of vote_routerstatus_t. C's struct layout rules mean that we could never actually get an error because of that, but it's still quite incorrect. I fixed that, and in the process needed to add two more sorting and searching helpers. Finally, I made the Unmeasured=1 flag get parsed. We don't use it for anything yet, but someday we might. This isn't complete yet -- the new 2286 unit test doesn't build.
| * | | | Add unit test for unmeasured bandwidth clipping in consensusAndrea Shepard2013-02-19
| | | | |
| * | | | Refactor v3_networkstatus test to allow reuse of test for measuredbwAndrea Shepard2013-02-19
| | | | |
| * | | | Note some annoyinc copy-and-paste codeNick Mathewson2013-02-19
| | | | |
| * | | | Tweak consensus method 17 based on arma's commentsNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of capping whenever a router has fewer than 3 measurements, we cap whenever a router has fewer than 3 measurements *AND* there are at least 3 authorities publishing measured bandwidths. We also generate bandwidth lines with a new "Unmeasured=1" flag, meaning that we didn't have enough observations for a node to use measured bandwidth values in the authority's input, whether we capped it or not.
| * | | | New consensus method: clip the maximum votable unmeasured bwNick Mathewson2013-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're deciding on a node's bandwidth based on "Bandwidth=" declarations, clip it to "20" or to the maxunmeasuredbw parameter, if it's voted on. This adds a new consensus method. This is "part A" of bug 2286
* | | | | touchups on 78582760Roger Dingledine2013-02-19
| | | | |
* | | | | Revise some comments in router.cNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid the phrase "legally valid" (as opposed to valid but not legal)? And document what functions really do. Fix for bug 6935.
* | | | | Fix a bug that roger found in the wide_circ_id codeNick Mathewson2013-02-15
| | | | |
* | | | | Merge remote-tracking branch 'public/bug8209'Nick Mathewson2013-02-15
|\ \ \ \ \