[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27594 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27594 - gnunet/src/mesh |
Date: |
Tue, 25 Jun 2013 17:19:01 +0200 |
Author: bartpolot
Date: 2013-06-25 17:19:01 +0200 (Tue, 25 Jun 2013)
New Revision: 27594
Modified:
gnunet/src/mesh/mesh2_api.c
Log:
- fix 2906
Modified: gnunet/src/mesh/mesh2_api.c
===================================================================
--- gnunet/src/mesh/mesh2_api.c 2013-06-25 15:13:03 UTC (rev 27593)
+++ gnunet/src/mesh/mesh2_api.c 2013-06-25 15:19:01 UTC (rev 27594)
@@ -823,7 +823,6 @@
t = create_tunnel (h, tid);
t->last_ack_sent = 0;
t->peer = GNUNET_PEER_intern (&msg->peer);
- GNUNET_PEER_change_rc (t->peer, 1);
t->mesh = h;
t->tid = tid;
t->port = ntohl (msg->port);
@@ -1203,7 +1202,7 @@
struct GNUNET_MessageHeader *mh;
LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload\n");
- if (GNUNET_NO == GMC_is_pid_bigger(t->last_ack_recv, t->last_pid_sent))
+ if (GNUNET_NO == GMC_is_pid_bigger (t->last_ack_recv, t->last_pid_sent))
{
/* This tunnel is not ready to transmit yet, try next message */
next = th->next;
@@ -1227,7 +1226,6 @@
}
if (t->tid >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV)
{
- /* traffic to origin */
dmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN);
LOG (GNUNET_ERROR_TYPE_DEBUG, "# to origin, type %s\n",
GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
@@ -1456,6 +1454,7 @@
LOG (GNUNET_ERROR_TYPE_DEBUG, " at %p\n", t);
LOG (GNUNET_ERROR_TYPE_DEBUG, " number %X\n", t->tid);
t->ctx = tunnel_ctx;
+ t->peer = GNUNET_PEER_intern (peer);
msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE);
msg.header.size = htons (sizeof (struct GNUNET_MESH_TunnelMessage));
msg.tunnel_id = htonl (t->tid);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27594 - gnunet/src/mesh,
gnunet <=