gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r23296 - gnunet/src/mesh
Date: Sat, 18 Aug 2012 04:35:52 +0200

Author: bartpolot
Date: 2012-08-18 04:35:52 +0200 (Sat, 18 Aug 2012)
New Revision: 23296

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
- initialize recv pid, reset on reconncet

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2012-08-18 02:10:31 UTC (rev 23295)
+++ gnunet/src/mesh/mesh_api.c  2012-08-18 02:35:52 UTC (rev 23296)
@@ -455,6 +455,7 @@
     t->tid = tid;
   }
   t->max_send_pid = 0;
+  t->last_recv_pid = (uint32_t) -1;
   return t;
 }
 
@@ -835,6 +836,9 @@
        */
       continue;
     }
+    t->next_send_pid = 0;
+    t->max_send_pid = 0;
+    t->last_recv_pid = (uint32_t) -1;
     tmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE);
     tmsg.header.size = htons (sizeof (struct GNUNET_MESH_TunnelMessage));
     tmsg.tunnel_id = htonl (t->tid);




reply via email to

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