aboutsummaryrefslogtreecommitdiff
path: root/proposals/325-packed-relay-cells.md
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-10 15:18:15 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-10 15:18:15 -0400
commit735d90409321f4ddc5dab61285ac268d32ec5a35 (patch)
tree30d6fcd93e4f33d285cfa198b31523053d3c725d /proposals/325-packed-relay-cells.md
parentfef8d018249bd6cc8ba359312b3dcd4c61922144 (diff)
downloadtorspec-735d90409321f4ddc5dab61285ac268d32ec5a35.tar.gz
torspec-735d90409321f4ddc5dab61285ac268d32ec5a35.zip
Proposal 325: markdown fixes
Diffstat (limited to 'proposals/325-packed-relay-cells.md')
-rw-r--r--proposals/325-packed-relay-cells.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/proposals/325-packed-relay-cells.md b/proposals/325-packed-relay-cells.md
index 35766ad..d402c39 100644
--- a/proposals/325-packed-relay-cells.md
+++ b/proposals/325-packed-relay-cells.md
@@ -19,7 +19,7 @@ use an entire 498-byte relay payload just to send a one-byte
flow-control message.
We already have some cases where we'd benefit from this feature.
-For example, when we send SENDME messages, END cells, or BEGIN_DIR
+For example, when we send `SENDME` messages, `END` cells, or `BEGIN_DIR`
cells, most of the cell body is wasted with padding.
As a side benefit, packing cells in this way may make the job of the
@@ -50,15 +50,15 @@ concatenated in a single relay cell.
Only some relay commands are supported for relay cell packing,
listed here:
- - SENDME
- - DROP
- - DATA
- - BEGIN
- - BEGIN_DIR
- - END
- - CONNECTED
- - PADDING_NEGOTIATE
- - PADDING_NEGOTIATED
+ - `SENDME`
+ - `DROP`
+ - `DATA`
+ - `BEGIN`
+ - `BEGIN_DIR`
+ - `END`
+ - `CONNECTED`
+ - `PADDING_NEGOTIATE`
+ - `PADDING_NEGOTIATED`
If any relay message with a relay command _not_ listed above appears
in a packed relay cell with another relay message, then the
@@ -131,10 +131,10 @@ value, computed as:
(stream_id_included<<15) | (relay_command << 9) | (relay_data_len).
-If the optional_stream_id field is not present, then the default
-value for the stream_id is computed as follows. We use stream_id 0
+If the `optional_stream_id` field is not present, then the default
+value for the `stream_id` is computed as follows. We use stream_id 0
for any command that doesn't take a stream ID. For commands that
-_do_ take a steam_id, we use whichever nonzero stream_id appeared
+_do_ take a `steam_id`, we use whichever nonzero `stream_id` appeared
most recently in the same cell.
This format limits the space of possible relay commands. That's