| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | bridge descriptors: Add clarification about bridge states | Ian Jackson | 2022-11-03 | 1 | -0/+3 | |
| | | | | ||||||
| | * | | bridge descriptors: Improve and fix docs for consider_launching | Ian Jackson | 2022-11-03 | 1 | -1/+6 | |
| | | | | ||||||
| | * | | bridge descriptors: Add comments where StateGuard is dropped | Ian Jackson | 2022-11-03 | 1 | -0/+8 | |
| | | | | ||||||
| | * | | bridge descriptors: Document `changed` and `earliest_timeout` Options | Ian Jackson | 2022-11-03 | 1 | -0/+5 | |
| | | | | ||||||
| | * | | bridge descriptors: Document updates argument to timeout_task | Ian Jackson | 2022-11-03 | 1 | -0/+6 | |
| | | | | ||||||
| | * | | Require derive_more 0.99.3 | Ian Jackson | 2022-11-03 | 12 | -12/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | 0.99.[012] have a bug https://github.com/JelteF/derive_more/issues/114 which makes the Deref derive for bridgedesc::StateGuard not work and therefore breaks minimal-versions CI. It seems simpler to require the newer version everywhere. | |||||
| | * | | bridge descriptors: Tests | Ian Jackson | 2022-11-03 | 4 | -0/+273 | |
| | | | | ||||||
| | * | | bridge descriptors: Provide a consistency check function | Ian Jackson | 2022-11-03 | 1 | -0/+196 | |
| | | | | | | | | | | | | | | | | This is really part of the tests, but I put it here so that it can be compiled-in if someone wants it during debugging. | |||||
| | * | | bridge descriptors: Provide an implementation of BridgeDescProvider | Ian Jackson | 2022-11-03 | 4 | -0/+1099 | |
| | | | | | | | | | | | | | Tests will come in a moment. | |||||
| | * | | tor-dirclient: Response: Provide into_output_string | Ian Jackson | 2022-11-03 | 1 | -0/+11 | |
| | | | | | | | | | | | | | | | | This is the missing one of the full set. It turns out that I wanted this rather than the non-consuming output_string. | |||||
| | * | | Copy tor-netdoc/testdata/routerdesc1.txt into tor-dirmgr | Ian Jackson | 2022-11-03 | 1 | -0/+50 | |
| |/ / | | | | | | | | | This seems better than having tor_netdoc export a `#[cfg(test)]` public constant. | |||||
| * | | Merge branch 'guards_as_bridges_part3' into 'main' | Nick Mathewson | 2022-11-02 | 6 | -156/+559 | |
| |\ \ | | | | | | | | | | | | | GuardMgr: decouple NetDir from guards and sample code. See merge request tpo/core/arti!815 | |||||
| | * | | Refactor CandidateStatus API to simplify code in descs. | Nick Mathewson | 2022-11-02 | 2 | -30/+35 | |
| | | | | | | | | | | | | | This removes some duplication. | |||||
| | * | | GuardMgr: Fix and improve comments based on review. | Nick Mathewson | 2022-11-02 | 3 | -6/+13 | |
| | | | | ||||||
| | * | | guardmgr: fix rustdoc references. | Nick Mathewson | 2022-11-02 | 2 | -3/+3 | |
| | | | | ||||||
| | * | | guardmgr: Refactor candidate info; add `full_dir_info` | Nick Mathewson | 2022-11-02 | 4 | -30/+72 | |
| | | | | | | | | | | | | | | | | | | | | | | Previously we always set `dir_info_missing` to `false` for new guards, since new guards could only be taken from ones that were present in the NetDir. But for bridges, we don't download their info until _after_ we have chosen them as guards. | |||||
| | * | | guardmgr: Implement Universe for bridges. | Nick Mathewson | 2022-11-02 | 3 | -2/+161 | |
| | | | | | | | | | | | | | | | | Now we can use a group of bridges as the basis for a sample of guards. | |||||
| | * | | guardmgr: Universe API should look up by ChanTarget | Nick Mathewson | 2022-11-02 | 3 | -14/+13 | |
| | | | | | | | | | | | | | This will be necessary for bridges. | |||||
| | * | | guardmgr: take sampled guards from Universe. | Nick Mathewson | 2022-11-02 | 3 | -83/+140 | |
| | | | | | | | | | | | | | This is a trickier case, since we have to deal with weights. | |||||
| | * | | guardmgr: Continue porting porting code to use Universe. | Nick Mathewson | 2022-11-02 | 2 | -12/+11 | |
| | | | | | | | | | | | | | Two more simple cases that can use Universe instead of Netdir. | |||||
| | * | | guardmgr: Begin to decouple guards from NetDir. | Nick Mathewson | 2022-11-02 | 3 | -38/+122 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this and the upcoming commits I'll be changing how guards related to `NetDir` and to `Relay`. Previously, a guard could only come from (or be updated from) a `Relay` in a `NetDir`. Soon it will be able to be built from a bridge as well. To do this, I'm defining a `Universe` trait (name negotiable) that represents a set of things that may be guards. I'm going to continue extending its functionality until there are no more methods in guard.rs or sample.rs that take `NetDir`. This commit removes most of the usage of `NetDir` and `Relay` in `guard.rs`. | |||||
| | * | | guardmgr: Rename microdescriptor_missing to dir_info_missing | Nick Mathewson | 2022-11-02 | 1 | -9/+9 | |
| | | | | ||||||
| | * | | guardmgr: Allow guards to be constructed from any ChanTarget. | Nick Mathewson | 2022-11-02 | 2 | -7/+16 | |
| | | | | ||||||
| | * | | guardmgr: Include PtTarget in guards. | Nick Mathewson | 2022-11-02 | 1 | -8/+50 | |
| | |/ | | | | | | | | | Use a vector, since we may (someday) want to allow a Guard to have multiple PtTargets. | |||||
| * | | Merge branch 'notify' into 'main' | Ian Jackson | 2022-11-01 | 1 | -123/+137 | |
| |\ \ | | | | | | | | | | | | | | | | | | | refactor config reload triggering Closes #562 See merge request tpo/core/arti!819 | |||||
| | * | | debounce reload cfg events | trinity-1686a | 2022-11-01 | 1 | -0/+7 | |
| | | | | ||||||
| | * | | rename unused field | trinity-1686a | 2022-10-30 | 1 | -3/+2 | |
| | | | | ||||||
| | * | | update some strings | trinity-1686a | 2022-10-30 | 1 | -10/+10 | |
| | | | | ||||||
| | * | | use iife so we can try! instead of custom error handling | trinity-1686a | 2022-10-30 | 1 | -64/+56 | |
| | | | | ||||||
| | * | | refactor so events always indicate reload | trinity-1686a | 2022-10-30 | 1 | -71/+74 | |
| | | | | ||||||
| | * | | depends less on notify types | trinity-1686a | 2022-10-30 | 1 | -22/+35 | |
| | |/ | ||||||
| * | | Merge branch 'remove-deps' into 'main' | Ian Jackson | 2022-11-01 | 6 | -15/+1 | |
| |\ \ | |/ |/| | | | | | remove unused dependancies See merge request tpo/core/arti!817 | |||||
| | * | remove unused dependancies | trinity-1686a | 2022-10-29 | 6 | -15/+1 | |
| |/ | ||||||
| * | Merge branch 'upgrade_20221028' into 'main' | Nick Mathewson | 2022-10-28 | 1 | -123/+209 | |
| |\ | | | | | | | | | Upgrade and update dependencies See merge request tpo/core/arti!816 | |||||
| | * | Upgrade dependencies in preparation for upcoming release(s) | Nick Mathewson | 2022-10-28 | 1 | -123/+209 | |
| |/ | ||||||
| * | update to latest arti-corpora | Nick Mathewson | 2022-10-28 | 1 | -0/+0 | |
| | | ||||||
| * | Merge branch 'guards_as_bridges_part2' into 'main' | Nick Mathewson | 2022-10-27 | 6 | -142/+374 | |
| |\ | | | | | | | | | Use ByRelayIds to hold guards in GuardSet See merge request tpo/core/arti!808 | |||||
| | * | guardmgr: Rename and clarify of non-persistent-state copy fns | Nick Mathewson | 2022-10-27 | 3 | -32/+24 | |
| | | | | | | | | | These will need a bigger overhaul: see #612 and #611. | |||||
| | * | Clarify fix_consistency | Ian Jackson | 2022-10-27 | 1 | -2/+2 | |
| | | | ||||||
| | * | Clarify what it means to be "an identity" for a primary guard. | Ian Jackson | 2022-10-27 | 1 | -1/+1 | |
| | | | ||||||
| | * | tor-guardmgr: Add big doc comment about guard id handling | Ian Jackson | 2022-10-27 | 1 | -0/+58 | |
| | | | ||||||
| | * | guardmgr: Use new ambiguity-tolerant contains in state handling | Nick Mathewson | 2022-10-25 | 1 | -2/+30 | |
| | | | | | | | | | This has subtleties; the comments try to explain them. | |||||
| | * | guard sample: Change semantics of `contains` to handle ambiguity. | Nick Mathewson | 2022-10-25 | 2 | -10/+33 | |
| | | | | | | | | | | | | | | | | | | | This is necessary for the (somewhat undesirable) lookup_ids function to return an ID that the dirmgr can actually use to report successes and failures. As noted, lookup_ids will create problems down the road when we implement relays. We should refactor it out before then. | |||||
| | * | Replace contains_relay with can_add_relay(). | Nick Mathewson | 2022-10-25 | 1 | -9/+6 | |
| | | | | | | | | | | | | | To see if we can add a relay as a guard, we need a conservative test: any IDs in common with the given relay prevent us from adding it. | |||||
| | * | Convert guard samples to use ByRelayIds. | Nick Mathewson | 2022-10-25 | 3 | -124/+193 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | This required a number of changes, which I've tried to document. I've taken a conservative approach to modification, and I'm not using any of the by_*_mut() functions (yet). For cases which potentially modify the whole set, I'm using into_values() and collect() to ensure that it's re-indexed correctly, even though the identities don't change. I introduce some "TODO pt-client" comments here which I will resolve in the next commit(s). | |||||
| | * | impl HasRelayIds for GuardId. | Nick Mathewson | 2022-10-25 | 1 | -0/+9 | |
| | | | ||||||
| | * | ByRelayIds: Add additional accessor functions. | Nick Mathewson | 2022-10-25 | 1 | -0/+51 | |
| | | | | | | | | | | | These are the ones that turned out to be necessary while converting guard samples to use ByRelayIds. | |||||
| | * | linkspec: add HasRelayIds::has_any_identity. | Nick Mathewson | 2022-10-25 | 1 | -1/+6 | |
| | | | ||||||
| * | | Merge branch 'bridge-api-yaks' into 'main' | Ian Jackson | 2022-10-27 | 7 | -6/+25 | |
| |\ \ | | | | | | | | | | | | | Misc minor changes to BridgeDescProvider APIs See merge request tpo/core/arti!812 | |||||
| | * | | tor-dirmgr: impl Default for FlagPublisher | Ian Jackson | 2022-10-27 | 1 | -0/+6 | |
| | | | | ||||||
