]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
changes to support sendme cells
authorRoger Dingledine <arma@torproject.org>
Thu, 18 Jul 2002 06:38:32 +0000 (06:38 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 18 Jul 2002 06:38:32 +0000 (06:38 +0000)
svn:r55

src/common/cell.h

index 726c01a7fb0c32ee0435f3826f20fedea3093da7..cbc2caca762fae746cbe209c8a96e21a387b5aa0 100644 (file)
@@ -8,8 +8,11 @@
 /*
  * Changes :
  * $Log$
- * Revision 1.1  2002/06/26 22:45:50  arma
- * Initial revision
+ * Revision 1.2  2002/07/18 06:38:32  arma
+ * changes to support sendme cells
+ *
+ * Revision 1.1.1.1  2002/06/26 22:45:50  arma
+ * initial commit: current code
  *
  * Revision 1.14  2002/04/02 14:27:11  badbytes
  * Final finishes.
@@ -67,6 +70,7 @@
 #define CELL_DESTROY 3
 #define CELL_ACK 4
 #define CELL_NACK 5
+#define CELL_SENDME 6
 
 #define CELL_PAYLOAD_SIZE 120
 
@@ -75,7 +79,7 @@ typedef struct
 {
   uint16_t aci; /* Anonymous Connection Identifier */
   unsigned char command;
-  unsigned char length; /* of payload */
+  unsigned char length; /* of payload if data cell, else value of sendme */
   uint32_t seq; /* sequence number */
   unsigned char payload[120];
 } cell_t;