From: Bart Polot Date: Wed, 10 Jul 2013 12:34:05 +0000 (+0000) Subject: - use proper reliability metadata X-Git-Tag: initial-import-from-subversion-38251~8414 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0be8753c49d74d78c33f667473d7617eccbc24f8;p=oweals%2Fgnunet.git - use proper reliability metadata --- 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))