gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r38213 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r38213 - gnunet/src/cadet
Date: Wed, 26 Oct 2016 06:20:58 +0200

Author: bartpolot
Date: 2016-10-26 06:20:57 +0200 (Wed, 26 Oct 2016)
New Revision: 38213

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- improve logging of CONN_ACK

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2016-10-26 04:20:56 UTC 
(rev 38212)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2016-10-26 04:20:57 UTC 
(rev 38213)
@@ -1029,16 +1029,17 @@
 {
   struct GNUNET_CADET_ConnectionACK msg;
   struct CadetTunnel *t;
-  size_t size = sizeof (struct GNUNET_CADET_ConnectionACK);
+  const uint16_t size = sizeof (struct GNUNET_CADET_ConnectionACK);
+  const uint16_t type = GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK;
 
   GCC_check_connections ();
   t = c->t;
   LOG (GNUNET_ERROR_TYPE_INFO,
-       "==> { C %s ACK} %19s on conn %s (%p) %s [%5u]\n",
-       GC_f2s (!fwd), "", GCC_2s (c), c, GC_f2s (fwd), size);
+       "==> %s ({ C %s ACK}    0) on conn %s (%p) %s [%5u]\n",
+       GC_m2s (type), GC_f2s (!fwd), GCC_2s (c), c, GC_f2s (fwd), size);
 
-  msg.header.size = htons (sizeof (struct GNUNET_CADET_ConnectionACK));
-  msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK);
+  msg.header.size = htons (size);
+  msg.header.type = htons (type);
   msg.reserved = htonl (0);
   msg.cid = c->id;
 




reply via email to

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