diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-15 17:37:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-15 17:37:17 +0100 |
commit | 60790f6e89914decc21c850d07aef9be237a6c41 (patch) | |
tree | 466e06ba2c6ba468cc5dfec446349824201073a9 /src/cadet/gnunet-service-cadet-new_tunnels.c | |
parent | 6bc0d9727ba8d3f57958dab50d571e1d9e6a630f (diff) | |
download | gnunet-60790f6e89914decc21c850d07aef9be237a6c41.tar.gz gnunet-60790f6e89914decc21c850d07aef9be237a6c41.zip |
spell out message types more, use correct conversion direction
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_tunnels.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c index c14b07ba8..1b7e4d9d3 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.c +++ b/src/cadet/gnunet-service-cadet-new_tunnels.c | |||
@@ -1893,7 +1893,7 @@ get_next_free_ctn (struct CadetTunnel *t) | |||
1893 | ctn = ((ctn + 1) & (~ HIGH_BIT)) | highbit; | 1893 | ctn = ((ctn + 1) & (~ HIGH_BIT)) | highbit; |
1894 | } | 1894 | } |
1895 | t->next_ctn.cn = htonl (((ctn + 1) & (~ HIGH_BIT)) | highbit); | 1895 | t->next_ctn.cn = htonl (((ctn + 1) & (~ HIGH_BIT)) | highbit); |
1896 | ret.cn = ntohl (ctn); | 1896 | ret.cn = htonl (ctn); |
1897 | return ret; | 1897 | return ret; |
1898 | } | 1898 | } |
1899 | 1899 | ||
@@ -2706,7 +2706,7 @@ handle_plaintext_channel_open (void *cls, | |||
2706 | if (NULL != ch) | 2706 | if (NULL != ch) |
2707 | { | 2707 | { |
2708 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2708 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2709 | "Received duplicate channel OPEN on port %s from %s (%s), resending ACK\n", | 2709 | "Received duplicate channel CHANNEL_OPEN on port %s from %s (%s), resending ACK\n", |
2710 | GNUNET_h2s (&copen->port), | 2710 | GNUNET_h2s (&copen->port), |
2711 | GCT_2s (t), | 2711 | GCT_2s (t), |
2712 | GCCH_2s (ch)); | 2712 | GCCH_2s (ch)); |
@@ -2715,7 +2715,7 @@ handle_plaintext_channel_open (void *cls, | |||
2715 | return; | 2715 | return; |
2716 | } | 2716 | } |
2717 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2717 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2718 | "Received channel OPEN on port %s from %s\n", | 2718 | "Received CHANNEL_OPEN on port %s from %s\n", |
2719 | GNUNET_h2s (&copen->port), | 2719 | GNUNET_h2s (&copen->port), |
2720 | GCT_2s (t)); | 2720 | GCT_2s (t)); |
2721 | ch = GCCH_channel_incoming_new (t, | 2721 | ch = GCCH_channel_incoming_new (t, |