From faa17141d0805c6b768255d0c31b011e1fa2665b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 22 Jun 2012 14:04:33 +0000 Subject: [PATCH] - send packet --- src/mesh/mesh_api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index ca4bff36f..5860e5d4d 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1392,7 +1392,9 @@ void GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h, const char *regex) { + struct GNUNET_MessageHeader *msg; + msg = GNUNET_malloc } /** @@ -1603,6 +1605,8 @@ GNUNET_MESH_peer_request_connect_by_string (struct GNUNET_MESH_Tunnel *tunnel, msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_STRING); msg->tunnel_id = htonl (tunnel->tid); memcpy(&msg[1], description, len); + + send_packet (tunnel->mesh, &msg->header, tunnel); } -- 2.25.1