aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r--src/dht/dht.h49
1 files changed, 43 insertions, 6 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 63e95e113..9c2e889a7 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -212,9 +212,18 @@ struct GNUNET_DHT_RouteResultMessage
212 struct GNUNET_MessageHeader header; 212 struct GNUNET_MessageHeader header;
213 213
214 /** 214 /**
215 * For alignment, always zero. 215 * Number of peers recorded in the "PUT" path.
216 * (original path message took during "PUT"). These
217 * peer identities follow this message.
216 */ 218 */
217 uint32_t reserved GNUNET_PACKED; 219 uint16_t put_path_length GNUNET_PACKED;
220
221 /**
222 * Number of peers recorded in the "GET" path
223 * (inverse of the path the GET message took). These
224 * peer identities follow this message.
225 */
226 uint16_t get_path_length GNUNET_PACKED;
218 227
219 /** 228 /**
220 * Unique ID identifying this request (necessary for 229 * Unique ID identifying this request (necessary for
@@ -227,6 +236,10 @@ struct GNUNET_DHT_RouteResultMessage
227 */ 236 */
228 GNUNET_HashCode key; 237 GNUNET_HashCode key;
229 238
239 /* PUT path */
240
241 /* GET path */
242
230 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */ 243 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */
231}; 244};
232 245
@@ -242,6 +255,11 @@ struct GNUNET_DHT_P2PRouteMessage
242 struct GNUNET_MessageHeader header; 255 struct GNUNET_MessageHeader header;
243 256
244 /** 257 /**
258 * Always zero.
259 */
260 uint32_t reserved GNUNET_PACKED;
261
262 /**
245 * Message options 263 * Message options
246 */ 264 */
247 uint32_t options GNUNET_PACKED; 265 uint32_t options GNUNET_PACKED;
@@ -252,14 +270,14 @@ struct GNUNET_DHT_P2PRouteMessage
252 uint32_t hop_count GNUNET_PACKED; 270 uint32_t hop_count GNUNET_PACKED;
253 271
254 /** 272 /**
255 * Network size estimate 273 * Replication level for this message
256 */ 274 */
257 uint32_t network_size GNUNET_PACKED; 275 uint32_t desired_replication_level GNUNET_PACKED;
258 276
259 /** 277 /**
260 * Replication level for this message 278 * Network size estimate
261 */ 279 */
262 uint32_t desired_replication_level GNUNET_PACKED; 280 uint32_t network_size GNUNET_PACKED;
263 281
264 /** 282 /**
265 * Unique ID identifying this request 283 * Unique ID identifying this request
@@ -298,6 +316,20 @@ struct GNUNET_DHT_P2PRouteResultMessage
298 struct GNUNET_MessageHeader header; 316 struct GNUNET_MessageHeader header;
299 317
300 /** 318 /**
319 * Number of peers recorded in the "PUT" path.
320 * (original path message took during "PUT"). These
321 * peer identities follow this message.
322 */
323 uint16_t put_path_length GNUNET_PACKED;
324
325 /**
326 * Number of peers recorded in the "GET" path
327 * (inverse of the path the GET message took). These
328 * peer identities follow this message.
329 */
330 uint16_t get_path_length GNUNET_PACKED;
331
332 /**
301 * Message options 333 * Message options
302 */ 334 */
303 uint32_t options GNUNET_PACKED; 335 uint32_t options GNUNET_PACKED;
@@ -329,6 +361,11 @@ struct GNUNET_DHT_P2PRouteResultMessage
329 uint32_t network_size GNUNET_PACKED; 361 uint32_t network_size GNUNET_PACKED;
330#endif 362#endif
331 363
364
365 /* PUT path */
366
367 /* GET path */
368
332 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */ 369 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */
333}; 370};
334 371