aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesh/mesh_api_new.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/mesh_api_new.c b/src/mesh/mesh_api_new.c
index 79536238f..b9d6cd41a 100644
--- a/src/mesh/mesh_api_new.c
+++ b/src/mesh/mesh_api_new.c
@@ -737,7 +737,7 @@ GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, void *cls,
737 h->cls = cls; 737 h->cls = cls;
738 h->message_handlers = handlers; 738 h->message_handlers = handlers;
739 h->applications = stypes; 739 h->applications = stypes;
740 h->next_tid = 0x80000000; 740 h->next_tid = GNUNET_MESH_LOCAL_TUNNEL_ID_MARK;
741 741
742 /* count handlers and apps, calculate size */ 742 /* count handlers and apps, calculate size */
743 for (h->n_handlers = 0; handlers[h->n_handlers].type; h->n_handlers++) ; 743 for (h->n_handlers = 0; handlers[h->n_handlers].type; h->n_handlers++) ;
@@ -962,6 +962,7 @@ GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel *tunnel,
962{ 962{
963 struct GNUNET_MESH_ConnectPeerByType msg; 963 struct GNUNET_MESH_ConnectPeerByType msg;
964 964
965 /* FIXME: remember request connect by type for reconnect! */
965 msg.header.size = htons (sizeof (struct GNUNET_MESH_ConnectPeerByType)); 966 msg.header.size = htons (sizeof (struct GNUNET_MESH_ConnectPeerByType));
966 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_BY_TYPE); 967 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_BY_TYPE);
967 msg.tunnel_id = htonl (tunnel->tid); 968 msg.tunnel_id = htonl (tunnel->tid);