aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_topo.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-10-24 16:03:39 +0000
committerBart Polot <bart@net.in.tum.de>2012-10-24 16:03:39 +0000
commit829fe549459860648f0f6724b6e845ec05cbd090 (patch)
tree692dec6aad91e81e85cabf7613e47503831449db /src/dht/test_dht_topo.c
parentec1f76747ba17442dec8a409c27f06f93b83ff76 (diff)
downloadgnunet-829fe549459860648f0f6724b6e845ec05cbd090.tar.gz
gnunet-829fe549459860648f0f6724b6e845ec05cbd090.zip
- allow n peers, typos, style
Diffstat (limited to 'src/dht/test_dht_topo.c')
-rw-r--r--src/dht/test_dht_topo.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/dht/test_dht_topo.c b/src/dht/test_dht_topo.c
index 1dd867f2b..a4765ee89 100644
--- a/src/dht/test_dht_topo.c
+++ b/src/dht/test_dht_topo.c
@@ -270,7 +270,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
270 if (LINE == test_topology) 270 if (LINE == test_topology)
271 { 271 {
272 o = GNUNET_TESTING_daemon_get (pg, 0); 272 o = GNUNET_TESTING_daemon_get (pg, 0);
273 d = GNUNET_TESTING_daemon_get (pg, 4); 273 d = GNUNET_TESTING_daemon_get (pg, num_peers - 1);
274 } 274 }
275 else if (TORUS == test_topology) 275 else if (TORUS == test_topology)
276 { 276 {
@@ -308,7 +308,8 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
308 GNUNET_BLOCK_TYPE_TEST, /* type */ 308 GNUNET_BLOCK_TYPE_TEST, /* type */
309 &d->id.hashPubKey, /*key to search */ 309 &d->id.hashPubKey, /*key to search */
310 4U, /* replication level */ 310 4U, /* replication level */
311 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL, /* xquery */ 311 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
312 NULL, /* xquery */
312 0, /* xquery bits */ 313 0, /* xquery bits */
313 &dht_get_id_handler, (void *)1); 314 &dht_get_id_handler, (void *)1);
314 if (TORUS == test_topology) 315 if (TORUS == test_topology)
@@ -319,7 +320,8 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
319 GNUNET_BLOCK_TYPE_TEST, /* type */ 320 GNUNET_BLOCK_TYPE_TEST, /* type */
320 &d2->id.hashPubKey, /*key to search */ 321 &d2->id.hashPubKey, /*key to search */
321 4U, /* replication level */ 322 4U, /* replication level */
322 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL, /* xquery */ 323 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
324 NULL, /* xquery */
323 0, /* xquery bits */ 325 0, /* xquery bits */
324 &dht_get_id_handler, (void *)2); 326 &dht_get_id_handler, (void *)2);
325 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " looking for %s\n", 327 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " looking for %s\n",
@@ -328,7 +330,8 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
328 GNUNET_BLOCK_TYPE_TEST, /* type */ 330 GNUNET_BLOCK_TYPE_TEST, /* type */
329 &d_far->id.hashPubKey, /*key to search */ 331 &d_far->id.hashPubKey, /*key to search */
330 4U, /* replication level */ 332 4U, /* replication level */
331 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL, /* xquery */ 333 GNUNET_DHT_RO_RECORD_ROUTE | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
334 NULL, /* xquery */
332 0, /* xquery bits */ 335 0, /* xquery bits */
333 &dht_get_id_handler, (void *)3); 336 &dht_get_id_handler, (void *)3);
334 } 337 }
@@ -338,7 +341,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
338} 341}
339 342
340/** 343/**
341 * Task to put the id of each peer into teh DHT. 344 * Task to put the id of each peer into the DHT.
342 * 345 *
343 * @param cls Closure (unused) 346 * @param cls Closure (unused)
344 * @param tc Task context 347 * @param tc Task context