diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-26 04:14:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-26 04:14:43 +0200 |
commit | 7978b76868ba81efaa4b65b47a54ee55cd092382 (patch) | |
tree | 7248f8a1c07364ba66435fe31d915e50df138d4c /src/cadet/cadet_protocol.h | |
parent | 9cfc671375ef346c3ff40fbcdd7c2c090972072a (diff) | |
download | gnunet-7978b76868ba81efaa4b65b47a54ee55cd092382.tar.gz gnunet-7978b76868ba81efaa4b65b47a54ee55cd092382.zip |
implement #4973
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index 560c186cd..de0cec5d0 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -350,9 +350,9 @@ struct GNUNET_CADET_ChannelOpenMessage | |||
350 | uint32_t opt GNUNET_PACKED; | 350 | uint32_t opt GNUNET_PACKED; |
351 | 351 | ||
352 | /** | 352 | /** |
353 | * Destination port. | 353 | * Hash of destination port and listener. |
354 | */ | 354 | */ |
355 | struct GNUNET_HashCode port; | 355 | struct GNUNET_HashCode h_port; |
356 | 356 | ||
357 | /** | 357 | /** |
358 | * ID of the channel within the tunnel. | 358 | * ID of the channel within the tunnel. |
@@ -362,15 +362,42 @@ struct GNUNET_CADET_ChannelOpenMessage | |||
362 | 362 | ||
363 | 363 | ||
364 | /** | 364 | /** |
365 | * Message to manage a Channel | 365 | * Message to acknowledge opening a channel of type |
366 | * (#GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK, | 366 | * #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK. |
367 | * #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY). | 367 | */ |
368 | struct GNUNET_CADET_ChannelOpenAckMessage | ||
369 | { | ||
370 | /** | ||
371 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK | ||
372 | */ | ||
373 | struct GNUNET_MessageHeader header; | ||
374 | |||
375 | /** | ||
376 | * For alignment. | ||
377 | */ | ||
378 | uint32_t reserved GNUNET_PACKED; | ||
379 | |||
380 | /** | ||
381 | * ID of the channel | ||
382 | */ | ||
383 | struct GNUNET_CADET_ChannelTunnelNumber ctn; | ||
384 | |||
385 | /** | ||
386 | * Port number of the channel, used to prove to the | ||
387 | * initiator that the receiver knows the port. | ||
388 | */ | ||
389 | struct GNUNET_HashCode port; | ||
390 | }; | ||
391 | |||
392 | |||
393 | /** | ||
394 | * Message to destroy a channel of type | ||
395 | * #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY. | ||
368 | */ | 396 | */ |
369 | struct GNUNET_CADET_ChannelManageMessage | 397 | struct GNUNET_CADET_ChannelDestroyMessage |
370 | { | 398 | { |
371 | /** | 399 | /** |
372 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK or | 400 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY |
373 | * #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY | ||
374 | */ | 401 | */ |
375 | struct GNUNET_MessageHeader header; | 402 | struct GNUNET_MessageHeader header; |
376 | 403 | ||