From 0be8753c49d74d78c33f667473d7617eccbc24f8 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 10 Jul 2013 12:34:05 +0000 Subject: [PATCH] - use proper reliability metadata --- src/mesh/gnunet-service-mesh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index aba4f3dfb..9b3028d24 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -4594,13 +4594,14 @@ handle_local_data (void *cls, struct GNUNET_SERVER_Client *client, + size); copy->t = t; copy->id = fc->last_pid_recv + 1; - copy->is_forward = GNUNET_YES; + copy->is_forward = (tid < GNUNET_MESH_LOCAL_TUNNEL_ID_SERV); copy->retry_timer = GNUNET_TIME_UNIT_MINUTES; copy->retry_task = GNUNET_SCHEDULER_add_delayed (copy->retry_timer, &tunnel_retransmit_message, copy); if (GNUNET_OK != - GNUNET_CONTAINER_multihashmap32_put (t->sent_messages_fwd, + GNUNET_CONTAINER_multihashmap32_put (tid < GNUNET_MESH_LOCAL_TUNNEL_ID_SERV ? + t->sent_messages_fwd : t->sent_messages_bck, copy->id, copy, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)) -- 2.25.1