{
for (p = 0; p < tc->link_array_size; p++)
if (NULL != tc->link_array[p].op)
- GNUNET_TESTBED_operation_cancel (tc->link_array[p].op);
+ GNUNET_TESTBED_operation_done (tc->link_array[p].op);
GNUNET_free (tc->link_array);
}
GNUNET_free (tc);
tc->link_array[cnt].tc = tc;
}
break;
+ case GNUNET_TESTBED_TOPOLOGY_CLIQUE:
+ tc->link_array_size = num_peers * (num_peers - 1);
+ tc->link_array = GNUNET_malloc (sizeof (struct OverlayLink) *
+ tc->link_array_size);
+ {
+ unsigned int offset;
+
+ offset = 0;
+ for (cnt=0; cnt < num_peers; cnt++)
+ {
+ unsigned int neighbour;
+
+ for (neighbour=0; neighbour < num_peers; neighbour++)
+ {
+ if (neighbour == cnt)
+ continue;
+ tc->link_array[offset].A = cnt;
+ tc->link_array[offset].B = neighbour;
+ tc->link_array[offset].tc = tc;
+ offset++;
+ }
+ }
+ }
+ break;
default:
GNUNET_break (0);
return NULL;
default:
GNUNET_break (0); /* Should not use any other option apart from
the ones handled here */
+ GNUNET_free_non_null (tc->link_array);
+ GNUNET_free (tc);
return NULL;
}
} while (GNUNET_TESTBED_TOPOLOGY_OPTION_END != secondary_option);
&oprelease_overlay_configure_topology);
GNUNET_TESTBED_operation_queue_insert_
(c->opq_parallel_topology_config_operations, op);
+ GNUNET_TESTBED_operation_begin_wait_ (op);
return op;
}