[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27573 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27573 - gnunet/src/mesh |
Date: |
Tue, 25 Jun 2013 13:27:32 +0200 |
Author: bartpolot
Date: 2013-06-25 13:27:32 +0200 (Tue, 25 Jun 2013)
New Revision: 27573
Modified:
gnunet/src/mesh/mesh2_api.c
Log:
- fix unicast/to_origin oversimplification
Modified: gnunet/src/mesh/mesh2_api.c
===================================================================
--- gnunet/src/mesh/mesh2_api.c 2013-06-25 11:25:40 UTC (rev 27572)
+++ gnunet/src/mesh/mesh2_api.c 2013-06-25 11:27:32 UTC (rev 27573)
@@ -1218,7 +1218,6 @@
psize += sizeof (dmsg);
GNUNET_assert (size >= psize);
dmsg.header.size = htons (psize);
- dmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN);
dmsg.tid = htonl (t->tid);
dmsg.pid = htonl (t->last_pid_sent + 1);
dmsg.ttl = 0;
@@ -1229,11 +1228,13 @@
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)));
}
else
{
+ dmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_UNICAST);
LOG (GNUNET_ERROR_TYPE_DEBUG, "# unicast, type %s\n",
GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27573 - gnunet/src/mesh,
gnunet <=