changes to support sendme cells

svn:r55
This commit is contained in:
Roger Dingledine 2002-07-18 06:38:32 +00:00
parent 267434bdea
commit 0a8d58138d

View File

@ -8,8 +8,11 @@
/* /*
* Changes : * Changes :
* $Log$ * $Log$
* Revision 1.1 2002/06/26 22:45:50 arma * Revision 1.2 2002/07/18 06:38:32 arma
* Initial revision * 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 * Revision 1.14 2002/04/02 14:27:11 badbytes
* Final finishes. * Final finishes.
@ -67,6 +70,7 @@
#define CELL_DESTROY 3 #define CELL_DESTROY 3
#define CELL_ACK 4 #define CELL_ACK 4
#define CELL_NACK 5 #define CELL_NACK 5
#define CELL_SENDME 6
#define CELL_PAYLOAD_SIZE 120 #define CELL_PAYLOAD_SIZE 120
@ -75,7 +79,7 @@ typedef struct
{ {
uint16_t aci; /* Anonymous Connection Identifier */ uint16_t aci; /* Anonymous Connection Identifier */
unsigned char command; 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 */ uint32_t seq; /* sequence number */
unsigned char payload[120]; unsigned char payload[120];
} cell_t; } cell_t;