From: Nick Mathewson Date: Thu, 17 Apr 2025 13:50:33 +0000 (-0400) Subject: or.h: Extend comment about cell format to include v1 format. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f9465587b0ef3db58d42ed70ae16c96f926177;p=thirdparty%2Ftor.git or.h: Extend comment about cell format to include v1 format. --- diff --git a/src/core/or/or.h b/src/core/or/or.h index 88954be32c..90abaec62c 100644 --- a/src/core/or/or.h +++ b/src/core/or/or.h @@ -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. */