| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We _already_ do not include FLOWCTRL_CC as a listed protocol among
the capabilities we provide, when we make a virtual hop. This
branch will make that behavior even more certain, by not looking at
required-client-protocols any longer.
|
| | | | |
| | | |
| | | |
| | | | |
We do something similar with non-virtual hops at !4076.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
We'll want this for the flow-control line in hsdescs.
|
| | | | |
| | | |
| | | |
| | | | |
The patch looks complicated, but this is just code movement.
|
| | | | | |
|
| |/ / /
| | |
| | |
| | | |
This will be used for exit port summary calculations.
|
| | | |
| | |
| | |
| | |
| | | |
This reverts the Eq derives added in !4150 while keeping the PartialEq,
in order to support including this in Unknown.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
This test is now called test_parse2_simple and intended to test simple
parse2 and encode round-trip functionality without edge-cases and such.
More edge tests will be added once we have a proper verification logic.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This commit adds a round-trip encoding test to test_parse2 that encodes
the decoded results and decodes them again in order to verify that the
again decoded result is equal to the original one.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Required for round trip encode testing which we will add in the next
commit.
We only keep the actual RouterDescSignatures because then we can do Eq.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Needed for encoding.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
proto: Allow BeginDir and Resolve messages in the stream reactor
Closes #2613
See merge request tpo/core/arti!4188
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
See
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4188#note_3432579
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
These assertions no longer fail now that the stream reactor is able to
handle non-`BEGIN` streams.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, these would fail to parse, because the (WIP) stream reactor
assumed all streams would be exit (BEGIN) streams.
Closes #2613
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
tor-netdoc: Further minor improvements to addr and port policy types
See merge request tpo/core/arti!4191
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This appears in a lot of debug output and the `... lo: ... hi: ...`
formulation is very noisy.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This type consists of, and will always consist of, two u16. Making it
Copy is convenient.
This will preclude us making it contain a RangeInclusive because
std::ops::RangeInclusive is not Copy (due to API design blunder in
std), and std::range is still unstable. I think that's OK.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Callers in policy.rs's sub-modules should not be required to open-code
constructing this, even though they can.
(PortRanges is module-private, so this is too.)
This is without prejudice to possible rationalisation of the types
in this area.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Upgrade itertools to 0.15.0
See merge request tpo/core/arti!4192
|
| | | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Additionally, fix itertools usage in maybenot_padding.rs
The definition of `Position` changed in 0.15.0.
|
| |\ \ \ \ \
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
Added ConfigBuildError::MissingOneOf and did TODO
See merge request tpo/core/arti!4131
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Upgrade rdrand dependency to 0.9
See merge request tpo/core/arti!4194
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Starting with rdrand 0.9, the crate supports aarch64.
|
| | | | | | |
|
| |/ / / / |
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | | |
added Unix Socket support
See merge request tpo/core/arti!4129
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4141#note_3430551
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
"Pattern" is wrong. Everything here is a pattern. This field is
the *address* pattern as opposed to the *ports* pattern.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
impl From<IpNet>, Copy, Hash
|
| | |_|/
|/| | |
|