From 15f237e6a41323f4b27ce6b247ed69a0282bd09f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 2 Nov 2011 15:51:20 +0000 Subject: [PATCH] note for bart --- src/mesh/gnunet-service-mesh.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.25.1