- hide temp config file, show config template
[oweals/gnunet.git] / src / mesh / mesh_common.c
index e65eb8a4df61d3ab14679b8730127a5f45161b35..c986213f107b3215b5556a975b47657756c7d7f6 100644 (file)
@@ -77,6 +77,16 @@ GM_min_pid (uint32_t a, uint32_t b)
 }
 
 
+const struct GNUNET_HashCode *
+GM_h2hc (const struct GNUNET_MeshHash *id)
+{
+  static struct GNUNET_HashCode hc;
+  memcpy (&hc, id, sizeof (*id));
+
+  return &hc;
+}
+
+
 #if !defined(GNUNET_CULL_LOGGING)
 const char *
 GM_m2s (uint16_t m)
@@ -241,10 +251,17 @@ GM_m2s (uint16_t m)
       break;
 
       /**
-       * Local monitoring of service.
+       * Local monitoring of channels.
+       */
+    case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNELS:
+      t = "LOCAL_INFO_CHANNELS";
+      break;
+
+      /**
+       * Local monitoring of a channel.
        */
-    case GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK:
-      t = "LOCAL_NACK";
+    case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNEL:
+      t = "LOCAL_INFO_CHANNEL";
       break;
 
       /**
@@ -307,7 +324,7 @@ GM_m2s (uint16_t m)
       sprintf(buf, "%u (UNKNOWN TYPE)", m);
       return buf;
   }
-  sprintf(buf, "%31s", t);
+  sprintf(buf, "{%22s}", t);
   return buf;
 }
 #else