aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-05checkIncludes: Separate file-handling from rule-handlingNick Mathewson
This is our shift from directory-at-a-time processing to file-at-a-time processing.
2019-08-05checkIncludes.py: extract topological sort codeNick Mathewson
Our topological sort code really deserves a function of its own. Additionally, don't print from inside the topological sort code: instead, return a result, and let the caller print it.
2019-08-05checkIncludes: introduce rules-file caching.Nick Mathewson
We'll want this so that we can have each file evaluated independently, rather than a directory at a time.
2019-08-05Move the executable part of checkIncludes.py inside an if block.Nick Mathewson
I'll want to make this block into a series of functions in a subsequent commit, but I'm doing this separately to get the indentation change out of the way. This branch will end up with making checkIncludes.py an integrated part of practracker, for ticket 31176.
2019-08-05Rename handle_relay_command to handle_relay_cell_command .George Kadianakis
As per David's review.
2019-08-05Test that regular cells get ignored in padding circuits.George Kadianakis
2019-08-05Ignore regular cells in padding circuits.George Kadianakis
Padding circuits were regular cells that got closed before their padding machine could finish. This means that they can still receive regular cells from their past life, but they have no way or reason to answer them anymore. Hence let's ignore them before they even get to the proper subsystems.
2019-08-05Split connection_edge_process_relay_cell() in two functions.George Kadianakis
One function does the validation, the other does the handling.
2019-08-05Merge branch 'maint-0.4.1'Nick Mathewson
2019-08-05Ignore regular cells in padding circuits.George Kadianakis
Padding circuits were regular cells that got closed before their padding machine could finish. This means that they can still receive regular cells from their past life, but they have no way or reason to answer them anymore. Hence let's ignore them before they even get to the proper subsystems.
2019-08-01Regenerate the practracker exceptions.txt fileNick Mathewson
2019-08-01practracker: restore exceptions.txt header when running --regenNick Mathewson
2019-08-01Merge branch 'tor-github/pr/1177'David Goulet
2019-08-01practracker: replaces "overstrict" with "overbroad"Nick Mathewson
I had the logic reversed here.
2019-08-01Lower check of TOR_DISABLE_PRACTRACKERNick Mathewson
Since we sometimes call practracker directly, that's where we should check the TOR_DISABLE_PRACTRACKER envvar.
2019-07-30Practracker: add an integration test.Nick Mathewson
This test runs practracker with a set of 0 thresholds, to make sure that it enumerates all its values right. It tries running with an empty exceptions file, and with an exceptions file that covers _some_ of the data, and it makes sure that the outputs are as expected.
2019-07-30practracker: better warning/regen handlingNick Mathewson
Now that there is only one toplevel place where we print problems, we can redirect just that one print to a file when we are regenerating the exceptions.txt file. Previously we redirected sys.stdout, which is naughty, and forced us to send warnings (and warnings alone) to stderr.
2019-07-30Practracker: new flags to control output.Nick Mathewson
These flags let you suppress the message about the number of problems and warnings, and let you control the thresholds above which something counts as a problem. I need this for testing.
2019-07-30practracker: Remove problemvault global.Nick Mathewson
2019-07-30practracker: Move the warning/error distinction to a higher level.Nick Mathewson
Previously warnings were generated by magic inside ProblemVault; now they're printed on demand.
2019-07-30practracker: Refactor flow to use generatorsNick Mathewson
Instead of having "consider" functions that have to call a global ProblemVault, we can now generate all the metrics for the code separately from the decision about what to do for them.
2019-07-30practracker: Rename "Problem" to "Item".Nick Mathewson
I'm about to refactor the code into a set of iterators that yield *all* the metrics for the code, and then add a filter on top of that to return the problems.
2019-07-29Merge branch 'maint-0.4.1'David Goulet
2019-07-29Merge branch 'tor-github/pr/1179' into maint-0.4.1David Goulet
2019-07-25Merge branch 'maint-0.4.1'Nick Mathewson
"ours" to avoid version bump.
2019-07-25bump to 0.4.1.4-rc-devNick Mathewson
2019-07-25forward-port the changelog for 0.4.1.4-rcNick Mathewson
2019-07-25Merge branch 'maint-0.4.1'Nick Mathewson
2019-07-25Fix more 32-bit errors with domain and tt_int_opNick Mathewson
2019-07-25Merge branch 'maint-0.4.1'Nick Mathewson
2019-07-25test: Use a 64-bit comparison for logging domains.Nick Mathewson
2019-07-25practracker: Make it happing for circuitpadding.cDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-07-25Merge branch 'maint-0.4.1'David Goulet
2019-07-25Always check the retval of circpad_machine_current_state().George Kadianakis
2019-07-25Remove dead code from circpad_machine_remove_token().George Kadianakis
2019-07-25Merge branch 'maint-0.4.1'David Goulet
2019-07-25Merge branch 'tor-github/pr/1171' into maint-0.4.1David Goulet
2019-07-25Merge branch 'maint-0.4.1'Nick Mathewson
"ours" to avoid version bump.
2019-07-25Bump version to 0.4.1.4-rcNick Mathewson
2019-07-24Fix clang-detected errors related to log_domain_mask_tNick Mathewson
2019-07-24Merge branch 'maint-0.4.1'George Kadianakis
2019-07-24Merge branch 'tor-github/pr/1181' into maint-0.4.1George Kadianakis
2019-07-24Merge branch 'tor-github/pr/1165'George Kadianakis
2019-07-23Merge branch 'ticket24963_042_02'Nick Mathewson
2019-07-23Add a test for disallowing single-hop introductions.Nick Mathewson
Code from dgoulet.
2019-07-23Allow NULL circ->p_chan in circuit_is_suitable_for_introduce1()Nick Mathewson
This shouldn't be possible while Tor is running, but the tests can hit this code. Rather than force the tests to add a dummy channel object, let's just tolerate their incompletely built circuits.
2019-07-23Merge remote-tracking branch 'tor-github/pr/1185'Nick Mathewson
2019-07-23Merge remote-tracking branch 'tor-github/pr/1186'Nick Mathewson
2019-07-23Merge branch 'tor-github/pr/1116'David Goulet
2019-07-23Merge branch 'tor-github/pr/1153'David Goulet