]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
move cell size to 256. seems to work (?)
authorRoger Dingledine <arma@torproject.org>
Mon, 24 Mar 2003 04:02:24 +0000 (04:02 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 24 Mar 2003 04:02:24 +0000 (04:02 +0000)
svn:r218

src/or/or.h

index 73ac995ad0776c8409ccbf9a4bea106b56327d15..2c1a2e008f96a22ad3b192f4f5f7397f50daf857 100644 (file)
 #define CELL_DESTROY 3
 #define CELL_SENDME 4
 
-#define CELL_PAYLOAD_SIZE 120
-#define CELL_NETWORK_SIZE 128
+#define CELL_PAYLOAD_SIZE 248
+#define CELL_NETWORK_SIZE 256
 
 /* enumeration of types which option values can take */
 #define CONFIG_TYPE_STRING  0
@@ -188,7 +188,7 @@ typedef struct {
   unsigned char command;
   unsigned char length; /* of payload if data cell, else value of sendme */
   uint32_t seq; /* sequence number */
-  unsigned char payload[120];
+  unsigned char payload[CELL_PAYLOAD_SIZE];
 } cell_t;
 
 #define SOCKS4_REQUEST_GRANTED          90