aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_protocol.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-20 18:56:17 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-20 18:56:17 +0100
commit6a828bdf078d44531cc8e7de70a88e9b6f438da9 (patch)
treeea7f15f8bc70c911d97a1d7de9f3601fdf2c2ad0 /src/cadet/cadet_protocol.h
parent6b25953f27639c7b87c98a6cb55fd173c9dc5016 (diff)
downloadgnunet-6a828bdf078d44531cc8e7de70a88e9b6f438da9.tar.gz
gnunet-6a828bdf078d44531cc8e7de70a88e9b6f438da9.zip
more work on new tunnel logic
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r--src/cadet/cadet_protocol.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h
index 070be3e28..0c325fc5a 100644
--- a/src/cadet/cadet_protocol.h
+++ b/src/cadet/cadet_protocol.h
@@ -253,10 +253,17 @@ struct GNUNET_CADET_TunnelEncryptedMessage
253 */ 253 */
254 struct GNUNET_MessageHeader header; 254 struct GNUNET_MessageHeader header;
255 255
256#if NEW_CADET
256 /** 257 /**
257 * ID of the packet (hop by hop). 258 * Reserved, for alignment.
259 */
260 uint32_t reserved GNUNET_PACKED;
261#else
262 /**
263 * Maximum packet ID authorized.
258 */ 264 */
259 struct CadetEncryptedMessageIdentifier cemi; 265 struct CadetEncryptedMessageIdentifier cemi;
266#endif
260 267
261 /** 268 /**
262 * ID of the connection. 269 * ID of the connection.
@@ -295,6 +302,8 @@ struct GNUNET_CADET_TunnelEncryptedMessage
295}; 302};
296 303
297 304
305#ifndef NEW_CADET
306
298/** 307/**
299 * Message to query a peer about its Flow Control status regarding a tunnel. 308 * Message to query a peer about its Flow Control status regarding a tunnel.
300 * 309 *
@@ -345,6 +354,8 @@ struct GNUNET_CADET_ConnectionEncryptedAckMessage
345 struct GNUNET_CADET_ConnectionTunnelIdentifier cid; 354 struct GNUNET_CADET_ConnectionTunnelIdentifier cid;
346}; 355};
347 356
357#endif
358
348 359
349/******************************************************************************/ 360/******************************************************************************/
350/******************************* CHANNEL ***********************************/ 361/******************************* CHANNEL ***********************************/
@@ -483,8 +494,7 @@ struct ChannelMessageIdentifier
483struct GNUNET_CADET_ChannelAppDataMessage 494struct GNUNET_CADET_ChannelAppDataMessage
484{ 495{
485 /** 496 /**
486 * Type: #GNUNET_MESSAGE_TYPE_CADET_UNICAST, 497 * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA.
487 * #GNUNET_MESSAGE_TYPE_CADET_TO_ORIGIN
488 */ 498 */
489 struct GNUNET_MessageHeader header; 499 struct GNUNET_MessageHeader header;
490 500