aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-10-26 04:20:57 +0000
committerBart Polot <bart@net.in.tum.de>2016-10-26 04:20:57 +0000
commit4af6ba201b444853becae1981f07f2ae021397ec (patch)
treef27da1e8847dc382336cefdb2c76a0b19ab340c7 /src
parentcf8b812db797ba7e5ce0a4cb0abb4e7920a09009 (diff)
downloadgnunet-4af6ba201b444853becae1981f07f2ae021397ec.tar.gz
gnunet-4af6ba201b444853becae1981f07f2ae021397ec.zip
- improve logging of CONN_ACK
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 32ce49fc8..37d55a5b0 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -1029,16 +1029,17 @@ send_connection_ack (struct CadetConnection *c, int fwd)
1029{ 1029{
1030 struct GNUNET_CADET_ConnectionACK msg; 1030 struct GNUNET_CADET_ConnectionACK msg;
1031 struct CadetTunnel *t; 1031 struct CadetTunnel *t;
1032 size_t size = sizeof (struct GNUNET_CADET_ConnectionACK); 1032 const uint16_t size = sizeof (struct GNUNET_CADET_ConnectionACK);
1033 const uint16_t type = GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK;
1033 1034
1034 GCC_check_connections (); 1035 GCC_check_connections ();
1035 t = c->t; 1036 t = c->t;
1036 LOG (GNUNET_ERROR_TYPE_INFO, 1037 LOG (GNUNET_ERROR_TYPE_INFO,
1037 "==> { C %s ACK} %19s on conn %s (%p) %s [%5u]\n", 1038 "==> %s ({ C %s ACK} 0) on conn %s (%p) %s [%5u]\n",
1038 GC_f2s (!fwd), "", GCC_2s (c), c, GC_f2s (fwd), size); 1039 GC_m2s (type), GC_f2s (!fwd), GCC_2s (c), c, GC_f2s (fwd), size);
1039 1040
1040 msg.header.size = htons (sizeof (struct GNUNET_CADET_ConnectionACK)); 1041 msg.header.size = htons (size);
1041 msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK); 1042 msg.header.type = htons (type);
1042 msg.reserved = htonl (0); 1043 msg.reserved = htonl (0);
1043 msg.cid = c->id; 1044 msg.cid = c->id;
1044 1045