From: Christian Grothoff Date: Wed, 2 Nov 2011 15:51:20 +0000 (+0000) Subject: note for bart X-Git-Tag: initial-import-from-subversion-38251~16095 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=15f237e6a41323f4b27ce6b247ed69a0282bd09f;p=oweals%2Fgnunet.git note for bart --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 54f46379a..bfcfec92b 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -1972,6 +1972,16 @@ tunnel_notify_connection_broken (struct MeshTunnel *t, } +struct AliasedData +{ + unsigned int reference_counter; + + size_t data_len; + + void *data; +}; + + /** * Send a message in a tunnel in multicast, sending a copy to each child node * down the local one in the tunnel tree. @@ -2026,9 +2036,13 @@ tunnel_send_multicast (struct MeshTunnel *t, while (NULL != n) { info = GNUNET_malloc (sizeof (struct MeshDataDescriptor)); + // info->shared_data = aliased_data; + // info->shared_data->reference_counter++; + info->data = data; info->size = size; info->copies = copies; + if (NULL != t->client) { info->client = t->client->handle;