gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19946 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r19946 - gnunet/src/mesh
Date: Wed, 22 Feb 2012 18:48:43 +0100

Author: bartpolot
Date: 2012-02-22 18:48:43 +0100 (Wed, 22 Feb 2012)
New Revision: 19946

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- Fixed bugs in notification of destruction of incoming tunnels

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-02-22 17:48:12 UTC (rev 
19945)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-02-22 17:48:43 UTC (rev 
19946)
@@ -1085,7 +1085,7 @@
 
   msg.header.size = htons (sizeof (msg));
   msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY);
-  msg.tunnel_id = htonl (t->local_tid);
+  msg.tunnel_id = htonl (t->local_tid_dest);
   GNUNET_SERVER_notification_context_broadcast (nc, &msg.header, GNUNET_NO);
 }
 
@@ -3173,9 +3173,11 @@
     GNUNET_break_op (0);
     return GNUNET_OK;
   }
-  if (t->local_tid >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV)
+  if (t->local_tid_dest >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV)
   {
     /* Tunnel was incoming, notify clients */
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "INCOMING TUNNEL %X %X\n",
+                t->local_tid, t->local_tid_dest);
     send_clients_tunnel_destroy (t);
   }
   tunnel_send_destroy (t);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]