handle loopback in GCCH_2s
authorChristian Grothoff <christian@grothoff.org>
Mon, 23 Jan 2017 19:09:37 +0000 (20:09 +0100)
committerChristian Grothoff <christian@grothoff.org>
Mon, 23 Jan 2017 19:09:37 +0000 (20:09 +0100)
src/cadet/gnunet-service-cadet-new_channel.c

index 4d4be93d7f7724846f281731a94f046b8e5d7a19..0d2545fb4c8977acc537eaf16a0fc044be880423 100644 (file)
@@ -337,7 +337,9 @@ GCCH_2s (const struct CadetChannel *ch)
   GNUNET_snprintf (buf,
                    sizeof (buf),
                    "Channel %s:%s ctn:%X(%X/%X)",
-                   GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))),
+                   (GNUNET_YES == ch->is_loopback)
+                   ? "loopback"
+                   : GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))),
                    GNUNET_h2s (&ch->port),
                    ch->ctn,
                    ntohl (ch->ccn_owner.channel_of_client),