diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:57 +0000 |
commit | 4af6ba201b444853becae1981f07f2ae021397ec (patch) | |
tree | f27da1e8847dc382336cefdb2c76a0b19ab340c7 /src/cadet/gnunet-service-cadet_connection.c | |
parent | cf8b812db797ba7e5ce0a4cb0abb4e7920a09009 (diff) |
- improve logging of CONN_ACK
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 11 |
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 32ce49fc89..37d55a5b04 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) { 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; |