Nick Mathewson
|
6c3f555a8c
Re-enable some disabled tests about switching guard_selections
|
7 vuotta sitten |
Nick Mathewson
|
80fa404625
Fix for small test networks: don't refuse to have any sampled guards.
|
7 vuotta sitten |
Nick Mathewson
|
eac8b3f758
Remove a few unused arguments.
|
7 vuotta sitten |
Nick Mathewson
|
84bfa895d7
Change return value of entry_guard_succeeded to an enum.
|
7 vuotta sitten |
Nick Mathewson
|
46619ec914
Note some large functions that could be split.
|
7 vuotta sitten |
Nick Mathewson
|
3bcbbea350
More progress on bridge implementation with prop271 guards
|
7 vuotta sitten |
Nick Mathewson
|
82fa71610d
Implement bridge backends for sampling, filtering guards.
|
7 vuotta sitten |
Nick Mathewson
|
53f248f6c9
Add some needed accessors/inspectors for bridge/guard convergence
|
7 vuotta sitten |
Nick Mathewson
|
1d52ac4d3f
Lay down some infrastructure for bridges in the New Guard Order.
|
7 vuotta sitten |
Nick Mathewson
|
89f5f149df
Remove guard_selection argument from status-reporting functions
|
7 vuotta sitten |
Nick Mathewson
|
6dcbc24a4e
Add a backpointer from entry_guard_t to guard_selection_t
|
7 vuotta sitten |
Nick Mathewson
|
404e9e5611
Have multiple guard contexts we can switch between.
|
7 vuotta sitten |
Nick Mathewson
|
08d3ca2e56
More entry guard tests: for cancel, and for upgrade.
|
7 vuotta sitten |
Nick Mathewson
|
fcb50f1839
Test for entry_guard_has_higher_priority().
|
7 vuotta sitten |
Nick Mathewson
|
c6d218c44b
Unit tests for entry_guard_{pick_for_circuit,succeeded,failed}
|
7 vuotta sitten |
Nick Mathewson
|
9493711077
Mark confirmed guards primary as appropriate.
|
7 vuotta sitten |
Nick Mathewson
|
d2af9826fd
Turn #defines for prop271 into networkstatus params
|
7 vuotta sitten |
Nick Mathewson
|
039bd01767
Add a wrapper for a common networkstatus param pattern
|
7 vuotta sitten |
Nick Mathewson
|
2ea5aa7182
Expire circuits that have been WAITING_FOR_BETTER_GUARD too long
|
7 vuotta sitten |
Nick Mathewson
|
e56bc1e5de
Move the 'dirty' flag for the guards to a global again
|
7 vuotta sitten |
Nick Mathewson
|
bce0f79252
Mark some more BUG lines as unreachable.
|
7 vuotta sitten |
Nick Mathewson
|
9cad2628dd
Test no-consensus case for filter.
|
7 vuotta sitten |
Nick Mathewson
|
a7bc73935b
Test get_guard_selection_by_name
|
7 vuotta sitten |
Nick Mathewson
|
526b0e2ce2
Avoid division-by-zero in pathbias_check_*_success_count
|
7 vuotta sitten |
Nick Mathewson
|
ac67819396
Make sure primary-guards are up-to-date when we inspect them.
|
7 vuotta sitten |
Nick Mathewson
|
f71be74340
When freeing a guard state, cancel it if its state is unknown
|
7 vuotta sitten |
Nick Mathewson
|
897626953b
Rebuild the guard lists as appropriate on torrc change.
|
7 vuotta sitten |
Nick Mathewson
|
8edd3d2b6c
Don't call into the new guard algorithm when the old one is enabled.
|
7 vuotta sitten |
Nick Mathewson
|
d98b9b6d65
Fix pathbias interactions with entry guards
|
7 vuotta sitten |
Nick Mathewson
|
783fa2f586
Make pathbias fields persistent for new guards
|
7 vuotta sitten |