fixing unsupported messages in core
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 23 Nov 2011 12:37:56 +0000 (12:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 23 Nov 2011 12:37:56 +0000 (12:37 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 22eb45398a6280c02d23a81e1418cc2c78794aec..61f4abc09e08e825a44f9e3852a64a14826a34b5 100644 (file)
@@ -820,13 +820,13 @@ send_disconnect (const struct GNUNET_PeerIdentity *target,
   struct SessionDisconnectMessage disconnect_msg;
 
 #if DEBUG_TRANSPORT
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
               "Sending DISCONNECT message to peer `%4s'\n",
               GNUNET_i2s (target));
 #endif
 
   disconnect_msg.header.size = htons (sizeof (struct SessionDisconnectMessage));
-  disconnect_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT);
+  disconnect_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT);
   disconnect_msg.reserved = htonl (0);
   disconnect_msg.purpose.size =
       htonl (sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) +
@@ -2187,7 +2187,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity
   GNUNET_HashCode hc;
 
 #if DEBUG_TRANSPORT
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
               "Received DISCONNECT message from peer `%s'\n",
               GNUNET_i2s (peer));
 #endif