aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-03-24 04:02:24 +0000
committerRoger Dingledine <arma@torproject.org>2003-03-24 04:02:24 +0000
commit96e5f776d60792f9ca8ce2606dd477c70e224098 (patch)
treeb3bcc200252a8416552a1f2eda5ebb9766368daf
parent0dad4999179f730422c543c111a90af148842bdd (diff)
downloadtor-96e5f776d60792f9ca8ce2606dd477c70e224098.tar
tor-96e5f776d60792f9ca8ce2606dd477c70e224098.tar.gz
move cell size to 256. seems to work (?)
svn:r218
-rw-r--r--src/or/or.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 73ac995ad..2c1a2e008 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -158,8 +158,8 @@
#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