diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-18 10:51:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-18 10:51:16 +0100 |
commit | a1bd2dcc29c126023dbd1ddf83d7514859d1775b (patch) | |
tree | 9e23f546f72f800c6451a9ab717bed6fa87e2ead /src/cadet/cadet_protocol.h | |
parent | 4ed4bcba53601d97793663017efcda877c3c490a (diff) | |
download | gnunet-a1bd2dcc29c126023dbd1ddf83d7514859d1775b.tar.gz gnunet-a1bd2dcc29c126023dbd1ddf83d7514859d1775b.zip |
cadet message struct and type rename-fest
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index c63337c95..c45c4c684 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -56,12 +56,12 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
56 | /** | 56 | /** |
57 | * Message for cadet connection creation. | 57 | * Message for cadet connection creation. |
58 | */ | 58 | */ |
59 | struct GNUNET_CADET_ConnectionCreate | 59 | struct GNUNET_CADET_ConnectionCreateMessage |
60 | { | 60 | { |
61 | /** | 61 | /** |
62 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE | 62 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE |
63 | * | 63 | * |
64 | * Size: sizeof (struct GNUNET_CADET_ConnectionCreate) + | 64 | * Size: sizeof (struct GNUNET_CADET_ConnectionCreateMessage) + |
65 | * path_length * sizeof (struct GNUNET_PeerIdentity) | 65 | * path_length * sizeof (struct GNUNET_PeerIdentity) |
66 | */ | 66 | */ |
67 | struct GNUNET_MessageHeader header; | 67 | struct GNUNET_MessageHeader header; |
@@ -87,10 +87,10 @@ struct GNUNET_CADET_ConnectionCreate | |||
87 | /** | 87 | /** |
88 | * Message for ack'ing a connection | 88 | * Message for ack'ing a connection |
89 | */ | 89 | */ |
90 | struct GNUNET_CADET_ConnectionACK | 90 | struct GNUNET_CADET_ConnectionCreateMessageAckMessage |
91 | { | 91 | { |
92 | /** | 92 | /** |
93 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK | 93 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE_ACK |
94 | */ | 94 | */ |
95 | struct GNUNET_MessageHeader header; | 95 | struct GNUNET_MessageHeader header; |
96 | 96 | ||
@@ -110,7 +110,7 @@ struct GNUNET_CADET_ConnectionACK | |||
110 | /** | 110 | /** |
111 | * Message for notifying a disconnection in a path | 111 | * Message for notifying a disconnection in a path |
112 | */ | 112 | */ |
113 | struct GNUNET_CADET_ConnectionBroken | 113 | struct GNUNET_CADET_ConnectionBrokenMessage |
114 | { | 114 | { |
115 | /** | 115 | /** |
116 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN | 116 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN |
@@ -142,7 +142,7 @@ struct GNUNET_CADET_ConnectionBroken | |||
142 | /** | 142 | /** |
143 | * Message to destroy a connection. | 143 | * Message to destroy a connection. |
144 | */ | 144 | */ |
145 | struct GNUNET_CADET_ConnectionDestroy | 145 | struct GNUNET_CADET_ConnectionDestroyMessage |
146 | { | 146 | { |
147 | /** | 147 | /** |
148 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY | 148 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY |
@@ -164,10 +164,10 @@ struct GNUNET_CADET_ConnectionDestroy | |||
164 | /** | 164 | /** |
165 | * Message to acknowledge cadet encrypted traffic. | 165 | * Message to acknowledge cadet encrypted traffic. |
166 | */ | 166 | */ |
167 | struct GNUNET_CADET_ACK | 167 | struct GNUNET_CADET_ConnectionEncryptedAckMessage |
168 | { | 168 | { |
169 | /** | 169 | /** |
170 | * Type: #GNUNET_MESSAGE_TYPE_CADET_ACK | 170 | * Type: #GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED_HOP_BY_HOP_ACK |
171 | */ | 171 | */ |
172 | struct GNUNET_MessageHeader header; | 172 | struct GNUNET_MessageHeader header; |
173 | 173 | ||
@@ -186,10 +186,10 @@ struct GNUNET_CADET_ACK | |||
186 | /** | 186 | /** |
187 | * Message to query a peer about its Flow Control status regarding a tunnel. | 187 | * Message to query a peer about its Flow Control status regarding a tunnel. |
188 | */ | 188 | */ |
189 | struct GNUNET_CADET_Poll | 189 | struct GNUNET_CADET_ConnectionHopByHopPollMessage |
190 | { | 190 | { |
191 | /** | 191 | /** |
192 | * Type: #GNUNET_MESSAGE_TYPE_CADET_POLL | 192 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_POLL |
193 | */ | 193 | */ |
194 | struct GNUNET_MessageHeader header; | 194 | struct GNUNET_MessageHeader header; |
195 | 195 | ||
@@ -231,10 +231,10 @@ enum GNUNET_CADET_KX_Flags { | |||
231 | /** | 231 | /** |
232 | * Message for a Key eXchange for a tunnel. | 232 | * Message for a Key eXchange for a tunnel. |
233 | */ | 233 | */ |
234 | struct GNUNET_CADET_KX | 234 | struct GNUNET_CADET_TunnelKeyExchangeMessage |
235 | { | 235 | { |
236 | /** | 236 | /** |
237 | * Type: #GNUNET_MESSAGE_TYPE_CADET_KX. | 237 | * Type: #GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX. |
238 | */ | 238 | */ |
239 | struct GNUNET_MessageHeader header; | 239 | struct GNUNET_MessageHeader header; |
240 | 240 | ||
@@ -268,10 +268,10 @@ struct GNUNET_CADET_KX | |||
268 | /** | 268 | /** |
269 | * Axolotl tunnel message. | 269 | * Axolotl tunnel message. |
270 | */ | 270 | */ |
271 | struct GNUNET_CADET_Encrypted | 271 | struct GNUNET_CADET_ConnectionEncryptedMessage |
272 | { | 272 | { |
273 | /** | 273 | /** |
274 | * Type: #GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED | 274 | * Type: #GNUNET_MESSAGE_TYPE_CONNECTION_ENCRYPTED |
275 | */ | 275 | */ |
276 | struct GNUNET_MessageHeader header; | 276 | struct GNUNET_MessageHeader header; |
277 | 277 | ||
@@ -327,7 +327,7 @@ struct GNUNET_CADET_Encrypted | |||
327 | /** | 327 | /** |
328 | * Message to create a Channel. | 328 | * Message to create a Channel. |
329 | */ | 329 | */ |
330 | struct GNUNET_CADET_ChannelCreate | 330 | struct GNUNET_CADET_ChannelCreateMessage |
331 | { | 331 | { |
332 | /** | 332 | /** |
333 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_CREATE | 333 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_CREATE |
@@ -355,7 +355,7 @@ struct GNUNET_CADET_ChannelCreate | |||
355 | /** | 355 | /** |
356 | * Message to manage a Channel (ACK, NACK, Destroy). | 356 | * Message to manage a Channel (ACK, NACK, Destroy). |
357 | */ | 357 | */ |
358 | struct GNUNET_CADET_ChannelManage | 358 | struct GNUNET_CADET_ChannelManageMessage |
359 | { | 359 | { |
360 | /** | 360 | /** |
361 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_{ACK|NACK|DESTROY} | 361 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_{ACK|NACK|DESTROY} |
@@ -374,7 +374,7 @@ struct GNUNET_CADET_ChannelManage | |||
374 | /** | 374 | /** |
375 | * Message for cadet data traffic. | 375 | * Message for cadet data traffic. |
376 | */ | 376 | */ |
377 | struct GNUNET_CADET_Data | 377 | struct GNUNET_CADET_ChannelDataMessage |
378 | { | 378 | { |
379 | /** | 379 | /** |
380 | * Type: #GNUNET_MESSAGE_TYPE_CADET_UNICAST, | 380 | * Type: #GNUNET_MESSAGE_TYPE_CADET_UNICAST, |
@@ -401,10 +401,10 @@ struct GNUNET_CADET_Data | |||
401 | /** | 401 | /** |
402 | * Message to acknowledge end-to-end data. | 402 | * Message to acknowledge end-to-end data. |
403 | */ | 403 | */ |
404 | struct GNUNET_CADET_DataACK | 404 | struct GNUNET_CADET_ChannelDataAckMessage |
405 | { | 405 | { |
406 | /** | 406 | /** |
407 | * Type: GNUNET_MESSAGE_TYPE_CADET_DATA_ACK | 407 | * Type: GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DATA_ACK |
408 | */ | 408 | */ |
409 | struct GNUNET_MessageHeader header; | 409 | struct GNUNET_MessageHeader header; |
410 | 410 | ||