gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r31434 - gnunet/src/mesh
Date: Mon, 16 Dec 2013 20:15:25 +0100

Author: bartpolot
Date: 2013-12-16 20:15:25 +0100 (Mon, 16 Dec 2013)
New Revision: 31434

Modified:
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- debug


Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-12-16 18:30:26 UTC 
(rev 31433)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-12-16 19:15:25 UTC 
(rev 31434)
@@ -994,9 +994,11 @@
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG, "  new kx ctx\n");
     t->kx_ctx = GNUNET_new (struct MeshTunnelKXCtx);
-    t->kx_ctx->challenge = GNUNET_CRYPTO_random_u32 
(GNUNET_CRYPTO_QUALITY_NONCE,
-                                                     UINT32_MAX);
+    t->kx_ctx->challenge =
+        GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE, UINT32_MAX);
     t->kx_ctx->d_key_old = t->d_key;
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  new challenge for %s: %u\n",
+         GMT_2s (t), t->kx_ctx->challenge);
   }
   send_ephemeral (t);
   switch (t->estate)
@@ -1919,7 +1921,8 @@
 {
   struct MeshTConnection *iter;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel empty: destroying scheduled\n");
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n",
+       GMT_2s (t));
   for (iter = t->connection_head; NULL != iter; iter = iter->next)
   {
     GMC_send_destroy (iter->c);
@@ -2104,7 +2107,7 @@
 {
   if (NULL == t)
   {
-    GNUNET_break (0);
+    GNUNET_assert (0);
     return (enum MeshTunnel3CState) -1;
   }
   return t->cstate;




reply via email to

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