]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
or.h: Extend comment about cell format to include v1 format.
authorNick Mathewson <nickm@torproject.org>
Thu, 17 Apr 2025 13:50:33 +0000 (09:50 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 May 2025 17:06:38 +0000 (13:06 -0400)
src/core/or/or.h

index 88954be32c8233eb7790010e819048eb87d5d94b..90abaec62c63e44892b4ec84d7b8121173537f8f 100644 (file)
@@ -454,13 +454,20 @@ typedef enum {
 #define SOCKS4_NETWORK_LEN 8
 
 /*
- * Relay payload:
+ * Relay cell body (V0):
  *         Relay command           [1 byte]
  *         Recognized              [2 bytes]
  *         Stream ID               [2 bytes]
  *         Partial SHA-1           [4 bytes]
  *         Length                  [2 bytes]
  *         Relay payload           [498 bytes]
+ *
+ * Relay cell body (V1):
+ *         Tag                     [16 bytes]
+ *         Command                 [1 byte]
+ *         Length                  [2 bytes]
+ *         Stream ID               [2 bytes, Optional, depends on command]
+ *         Relay payload           [488 bytes _or_ 490 bytes]
  */
 
 /** Number of bytes in a cell, minus cell header. */