aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-02 15:51:20 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-02 15:51:20 +0000
commit15f237e6a41323f4b27ce6b247ed69a0282bd09f (patch)
treedd3dca5bf225415cac783fb8170d80c36514452b /src/mesh
parentd825f9ccd99b0b74278c8773ee6fba2d7974a1a9 (diff)
downloadgnunet-15f237e6a41323f4b27ce6b247ed69a0282bd09f.tar.gz
gnunet-15f237e6a41323f4b27ce6b247ed69a0282bd09f.zip
note for bart
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c14
1 files changed, 14 insertions, 0 deletions
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,
1972} 1972}
1973 1973
1974 1974
1975struct AliasedData
1976{
1977 unsigned int reference_counter;
1978
1979 size_t data_len;
1980
1981 void *data;
1982};
1983
1984
1975/** 1985/**
1976 * Send a message in a tunnel in multicast, sending a copy to each child node 1986 * Send a message in a tunnel in multicast, sending a copy to each child node
1977 * down the local one in the tunnel tree. 1987 * down the local one in the tunnel tree.
@@ -2026,9 +2036,13 @@ tunnel_send_multicast (struct MeshTunnel *t,
2026 while (NULL != n) 2036 while (NULL != n)
2027 { 2037 {
2028 info = GNUNET_malloc (sizeof (struct MeshDataDescriptor)); 2038 info = GNUNET_malloc (sizeof (struct MeshDataDescriptor));
2039 // info->shared_data = aliased_data;
2040 // info->shared_data->reference_counter++;
2041
2029 info->data = data; 2042 info->data = data;
2030 info->size = size; 2043 info->size = size;
2031 info->copies = copies; 2044 info->copies = copies;
2045
2032 if (NULL != t->client) 2046 if (NULL != t->client)
2033 { 2047 {
2034 info->client = t->client->handle; 2048 info->client = t->client->handle;