summaryrefslogtreecommitdiff
path: root/tor-proto/src/channel/circmap.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-1/+1
|
* note a small divergence in circuit id probing behavior.Nick Mathewson2021-04-291-0/+2
|
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-1/+1
| | | | This is painful, but we shouldn't have to do it again.
* Rename CircIDRange to CircIdRangeNick Mathewson2020-10-271-8/+8
|
* channel::reactor: Tests for handling incoming RELAY cellsNick Mathewson2020-10-261-0/+10
|
* Add a CircEnt::DestroySent circuit state.Nick Mathewson2020-10-261-0/+9
| | | | | | | A circuit enters DestroySent after it's sent a DESTROY cell. We use this state to make sure that we don't receive too many cells on a destroyed circuit, _and_ so that we don't block such cells completely.
* Use better return type in advance_from_openingNick Mathewson2020-10-251-8/+11
|
* Rename CircID and StreamID to end with Id instead, for consistencyNick Mathewson2020-10-251-11/+11
|
* Add some tests for channel reactor and related code.Nick Mathewson2020-10-251-0/+1
|
* Start on some tests for pieces of tor-proto::channelNick Mathewson2020-10-211-0/+70
|
* tor-proto: Add a ClientCircChanMsg type.Nick Mathewson2020-10-151-8/+7
| | | | | | This wraps exactly the ChanMsg values that are valid on open client circuits, so that we can be sure that only those cells are sent to a ClientCirc's reactor.
* tor-proto: Add a "CreateResponse" type.Nick Mathewson2020-10-151-3/+8
| | | | | | CreateResponse includes exactly those cells that are a correct response to a CREATE2/CREATE_FAST, so we can be sure that only those cells are actually passed to a PendingClientCirc.
* Document all private members in tor-protoNick Mathewson2020-10-131-0/+6
|
* Remove idmap as needlessly complex.Nick Mathewson2020-09-291-6/+13
|
* Split the cell-handling parts of tor-proto into a new crate.Nick Mathewson2020-09-261-2/+2
|
* Lower our "#[allow(dead_code)]" decl in tor_proto."Nick Mathewson2020-09-251-0/+1
|
* Turn IdMap into an extension trait.Nick Mathewson2020-09-231-4/+10
| | | | | Also, use the "right" (cyclic, potentially expensive) algorithm for stream IDs.
* Fix some errors; document some places where error handling is bogusNick Mathewson2020-09-211-1/+1
|
* More documentation for channel, circuit, stream.Nick Mathewson2020-09-211-2/+24
|
* Start implementing streams and circuit-level reactors.Nick Mathewson2020-09-211-2/+26
| | | | | | Also, revise nearly all of the circuit/channel interaction to actually send relay cells to the right place and do sensible things with them.
* Create a StreamID->Stream map type.Nick Mathewson2020-09-201-38/+7
| | | | | Also extract the shared part of CircMap and StreamMap into a new IdMap type.
* proto: add minimal (raw) circuit support.Nick Mathewson2020-09-111-6/+14
| | | | | This is about enough to make a circuit, send a create_fast cell, and get a created_fast cell back.
* proto::channel: add piping to move cells around.Nick Mathewson2020-09-111-0/+100
There's a "reactor" task to move cells to the appropriate circuit, and a "send_cell" to send a cell directly. This is client-only for now.