35 #define CHANNEL_DOWNSTREAM_PACKETS 10
36 #define CHANNEL_TIMEOUT 15
37 #define CHAIN_TIMEOUT 30
38 #define DEADLINE_TIMEOUT 5
40 #define CHAIN_ID_LENGTH 8
46 #define MAX_DELAY_BUCKET_SIZE 30000
59 #define CHAINFLAG_STREAM_CLOSED 0x4000
62 #define CHAINFLAG_NEW_CHAIN 0x2000
63 #define CHAINFLAG_FAST_RESPONSE 0x8000
66 #define CHAINFLAG_CONNECTION_ERROR 0x8000
67 #define CHAINFLAG_UNKNOWN_CHAIN 0x2000
69 #define CHAINFLAG_LENGTH_MASK 0x03FF
71 #define MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD DATA_SIZE - 2 - 1
72 #define MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD DATA_SIZE - 2 - CHAIN_ID_LENGTH
74 #if ((defined(WIN32) || defined(__sgi)) && !defined(__GNUC__))
75 #pragma pack(push, t_upstream_chain_cell)
96 #pragma pack(pop, t_upstream_chain_cell)
119 #define MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD DATA_SIZE - 2 - CHAIN_ID_LENGTH
120 #define MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD DATA_SIZE - 2
122 #if ((defined(WIN32) || defined(__sgi)) && !defined(__GNUC__))
123 #pragma pack(push, t_downstream_chain_cell)
143 #pragma pack(pop, t_downstream_chain_cell)
t_first_downstream_chain_cell firstCell
t_sequel_downstream_chain_cell sequelCell
UINT8 chainId[CHAIN_ID_LENGTH]
UINT8 data[MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD]
UINT8 data[MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD]
UINT8 data[MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD]
UINT8 chainId[CHAIN_ID_LENGTH]
UINT8 data[MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD]
t_sequel_upstream_chain_cell sequelCell
t_first_upstream_chain_cell firstCell
t_downstream_chain_cell t_downstreamChainCell
#define MAX_FIRST_UPSTREAM_CHAINCELL_PAYLOAD
#define MAX_SEQUEL_DOWNSTREAM_CHAINCELL_PAYLOAD
#define MAX_FIRST_DOWNSTREAM_CHAINCELL_PAYLOAD
#define MAX_SEQUEL_UPSTREAM_CHAINCELL_PAYLOAD
t_upstream_chain_cell t_upstreamChainCell
struct t_first_upstream_chain_cell __attribute__((__packed__))