- t->paths = GNUNET_malloc (sizeof(struct MeshTunnelPath));
- t->paths->first_hops = GNUNET_CONTAINER_multihashmap_create(32);
- t->paths->t = t;
- t->paths->root = GNUNET_malloc(sizeof(struct MeshTunnelPathNode));
- t->paths->root->status = MESH_PEER_READY;
- t->paths->root->t = t;
- t->paths->root->peer = peer_info_get(&my_full_id);
- GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "MESH: adding root node id %u\n",
- t->paths->root->peer->id);
- GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "MESH: own id is %s\n",
- GNUNET_h2s_full(&my_full_id.hashPubKey));
- struct GNUNET_PeerIdentity id;
- GNUNET_PEER_resolve(t->paths->root->peer->id, &id);
- GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "MESH: id of peer is %s\n",
- GNUNET_h2s_full(&id.hashPubKey));
- t->paths->me = t->paths->root;
+ t->tree = GNUNET_malloc (sizeof(struct MeshTunnelPath));
+ t->tree->first_hops = GNUNET_CONTAINER_multihashmap_create(32);
+ t->tree->t = t;
+ t->tree->root = GNUNET_malloc(sizeof(struct MeshTunnelPathNode));
+ t->tree->root->status = MESH_PEER_READY;
+ t->tree->root->t = t;
+ t->tree->root->peer = peer_info_get(&my_full_id);
+ t->tree->me = t->tree->root;