diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-01 13:47:55 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-01 13:47:55 +0000 |
commit | 6559025e6703aea128f354bc4a1d8d8d15790c6d (patch) | |
tree | 0b986fe5ef4cd1d310a83af6223bb72469efdcdc /src/dht/dht.h | |
parent | 6bec3bca00d8cad55a53485539d951038f07e69d (diff) | |
download | gnunet-6559025e6703aea128f354bc4a1d8d8d15790c6d.tar.gz gnunet-6559025e6703aea128f354bc4a1d8d8d15790c6d.zip |
initial route path recording, not yet what dht api expects
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index 094cfb7d8..4e8782bb5 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -267,6 +267,13 @@ struct GNUNET_DHT_P2PRouteMessage | |||
267 | uint32_t network_size GNUNET_PACKED; | 267 | uint32_t network_size GNUNET_PACKED; |
268 | 268 | ||
269 | /** | 269 | /** |
270 | * Route path length; number of GNUNET_PeerIdentity's | ||
271 | * copied to the end of this message (before the actual | ||
272 | * encapsulated message) | ||
273 | */ | ||
274 | uint32_t route_path_length GNUNET_PACKED; | ||
275 | |||
276 | /** | ||
270 | * Unique ID identifying this request | 277 | * Unique ID identifying this request |
271 | */ | 278 | */ |
272 | uint64_t unique_id GNUNET_PACKED; | 279 | uint64_t unique_id GNUNET_PACKED; |
@@ -287,13 +294,6 @@ struct GNUNET_DHT_P2PRouteMessage | |||
287 | 294 | ||
288 | /** | 295 | /** |
289 | * Generic P2P route result | 296 | * Generic P2P route result |
290 | * | ||
291 | * FIXME: One question is how much to include for a route result message. | ||
292 | * Assuming a peer receives such a message, but has no record of a | ||
293 | * route message, what should it do? It can either drop the message | ||
294 | * or try to forward it towards the original peer... However, for | ||
295 | * that to work we would need to include the original peer identity | ||
296 | * in the GET request, which adds more data to the message. | ||
297 | */ | 297 | */ |
298 | struct GNUNET_DHT_P2PRouteResultMessage | 298 | struct GNUNET_DHT_P2PRouteResultMessage |
299 | { | 299 | { |
@@ -303,18 +303,11 @@ struct GNUNET_DHT_P2PRouteResultMessage | |||
303 | struct GNUNET_MessageHeader header; | 303 | struct GNUNET_MessageHeader header; |
304 | 304 | ||
305 | /** | 305 | /** |
306 | * Number of peers recorded in the "PUT" path. | 306 | * Number of peers recorded in the path |
307 | * (original path message took during "PUT"). These | 307 | * (inverse of the path the outgoing message took). |
308 | * peer identities follow this message. | 308 | * These peer identities follow this message. |
309 | */ | ||
310 | uint16_t put_path_length GNUNET_PACKED; | ||
311 | |||
312 | /** | ||
313 | * Number of peers recorded in the "GET" path | ||
314 | * (inverse of the path the GET message took). These | ||
315 | * peer identities follow this message. | ||
316 | */ | 309 | */ |
317 | uint16_t get_path_length GNUNET_PACKED; | 310 | uint16_t outgoing_path_length GNUNET_PACKED; |
318 | 311 | ||
319 | /** | 312 | /** |
320 | * Message options | 313 | * Message options |