gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r27883 - gnunet/src/mesh
Date: Wed, 10 Jul 2013 15:12:03 +0200

Author: bartpolot
Date: 2013-07-10 15:12:03 +0200 (Wed, 10 Jul 2013)
New Revision: 27883

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- fix decoding of tunnel options

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2013-07-10 13:11:22 UTC (rev 
27882)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2013-07-10 13:12:03 UTC (rev 
27883)
@@ -2654,8 +2654,10 @@
 static void
 tunnel_set_options (struct MeshTunnel *t, uint32_t options)
 {
-  t->nobuffer = options & GNUNET_MESH_OPTION_NOBUFFER;
-  t->reliable = options & GNUNET_MESH_OPTION_RELIABLE;
+  t->nobuffer = (options & GNUNET_MESH_OPTION_NOBUFFER) != 0 ?
+                 GNUNET_YES : GNUNET_NO;
+  t->reliable = (options & GNUNET_MESH_OPTION_RELIABLE) != 0 ?
+                 GNUNET_YES : GNUNET_NO;
 }
 
 
@@ -4432,7 +4434,7 @@
   tunnel_set_options (t, ntohl (t_msg->options));
   if (GNUNET_YES == t->reliable)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "!!! Reliable \n");
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "!!! Reliable\n");
     t->sent_messages_fwd =
      GNUNET_CONTAINER_multihashmap32_create (t->queue_max);  
   }




reply via email to

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