aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge branch 'bug7582_v2' into maint-0.2.4Nick Mathewson2013-03-19
|\
| * Free prepend_policy values in origin circuitsNick Mathewson2013-03-19
| |
| * On END_REASON_EXITPOLICY, mark circuit as unusable for that address.Nick Mathewson2013-03-11
| | | | | | | | | | | | | | | | | | | | Also, don't call the exit node 'reject *' unless our decision to pick that node was based on a non-summarized version of that node's exit policy. rransom and arma came up with the ideas for this fix. Fix for 7582; the summary-related part is a bugfix on 0.2.3.2-alpha.
* | 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
| * | Stop frobbing timestamp_dirty as our sole means to mark circuits unusableNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a number of places, we decrement timestamp_dirty by MaxCircuitDirtiness in order to mark a stream as "unusable for any new connections. This pattern sucks for a few reasons: * It is nonobvious. * It is error-prone: decrementing 0 can be a bad choice indeed. * It really wants to have a function. It can also introduce bugs if the system time jumps backwards, or if MaxCircuitDirtiness is increased. So in this patch, I add an unusable_for_new_conns flag to origin_circuit_t, make it get checked everywhere it should (I looked for things that tested timestamp_dirty), and add a new function to frob it. For now, the new function does still frob timestamp_dirty (after checking for underflow and whatnot), in case I missed any cases that should be checking unusable_for_new_conns. Fixes bug 6174. We first used this pattern in 516ef41ac1fd26f338c, which I think was in 0.0.2pre26 (but it could have been 0.0.2pre27).
* | | Merge remote-tracking branch 'public/bug8062' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \
| * | | Increase link_proto field to 2 bytesNick Mathewson2013-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have been 2 bytes all along, since version numbers can be 16 bits long. This isn't a live bug, since the call to is_or_protocol_version_known in channel_tls_process_versions_cell will reject any version number not in the range 1..4. Still, let's fix this before we accidentally start supporting version 256. Reported pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha -- specifically, on commit 6fcda529, where during development I increased the width of a version to 16 bits without changing the type of link_proto.
* | | | Handle TRUNCATE correctly if our next channel isn't done yet.Nick Mathewson2013-03-18
| | | | | | | | | | | | | | | | Patch from 'cypherpunks'. Fixes bug #7947. Bugfix on 0.0.7.1.
* | | | Merge remote-tracking branch 'public/bug6164' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \
| * | | | Clear up a comment about when an assertion could fireNick Mathewson2013-02-19
| | |/ / | |/| | | | | | | | | | Resolves ticket 6164
* | | | Fix another case of bug 8206; patch from flupzorNick Mathewson2013-03-18
| | | |
* | | | Merge remote-tracking branch 'public/bug6673' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \
| * | | | Give an #error when we want threads and OpenSSL has disabled threadsNick Mathewson2013-03-11
| | |/ / | |/| | | | | | | | | | Fixes ticket 6673.
* | | | Fix some wide linesNick Mathewson2013-03-18
| | | |
* | | | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/test/test_addr.c
| * \ \ \ Merge remote-tracking branch 'public/bug8377' into maint-0.2.3Nick Mathewson2013-03-18
| |\ \ \ \
| | * | | | Add unit test for tor_addr_is_loopbackNick Mathewson2013-03-01
| | | | | |
| | * | | | Make sure that [::1] is recognized as a private addressNick Mathewson2013-03-01
| | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 8377; bugfix on 0.2.1.3-alpha.
* | | | | | Merge remote-tracking branch 'andrea/bug8435' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \ \ \
| * | | | | | Improve comment for routers_with_measured_bw static var in dirserv.cAndrea Shepard2013-03-18
| | | | | | |
| * | | | | | Improve comment on router_counts_toward_thresholds()Andrea Shepard2013-03-18
| | | | | | |
| * | | | | | Add dirserv_has_measured_bw() predicate wrapper for ↵Andrea Shepard2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dirserv_query_measured_bw_cache()
| * | | | | | Ignore advertised bandwidths if we have enough measured bandwidths availableAndrea Shepard2013-03-18
| | | | | | |
| * | | | | | Better comment for dirserv_query_measured_bw_cache()Andrea Shepard2013-03-07
| | | | | | |
| * | | | | | Use DIGESTMAP_FOREACH_MODIFY in dirserv_expire_measured_bw_cache() for concisionAndrea Shepard2013-03-07
| | | | | | |
| * | | | | | Add unit test for dirserv measured bandwidth cacheAndrea Shepard2013-03-07
| | | | | | |
| * | | | | | Make sure expiry check in dirserv_expire_measured_bw_cache() works if time_t ↵Andrea Shepard2013-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | is unsigned
| * | | | | | More constness in dirserv.cAndrea Shepard2013-03-07
| | | | | | |
| * | | | | | Make dirserv_cache_measured_bw() use a const measured_bw_line_t *Andrea Shepard2013-03-07
| | | | | | |
| * | | | | | Call dirserv_clear_measured_bw_cache() from dirserv_free_all()Andrea Shepard2013-03-05
| | | | | | |
| * | | | | | Prefer measured bandwidths over advertised when computing things for votes ↵Andrea Shepard2013-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on a dirauth
* | | | | | | Make stream events for RESOLVE lookups more consistentNick Mathewson2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes 8203; patch by Desoxy
* | | | | | | 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
| |_|_|_|_|_|/ |/| | | | | |