From 7e2e6f55d1bf7ab87c9df180bfa6841480f99ab8 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 31 Jul 2012 14:52:20 +0000 Subject: [PATCH] - dont reject local ack from client --- src/mesh/gnunet-service-mesh.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index f2eaa8be5..24a1c4611 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -6438,6 +6438,21 @@ handle_local_multicast (void *cls, struct GNUNET_SERVER_Client *client, } +/** + * Handler for client ACKs for payload traffic. + * + * @param cls Closure (unused). + * @param client Identification of the client. + * @param message The actual message. + */ +static void +handle_local_ack (void *cls, struct GNUNET_SERVER_Client *client, + const struct GNUNET_MessageHeader *message) +{ + return; +} + + /** * Functions to handle messages from clients */ @@ -6487,6 +6502,9 @@ static struct GNUNET_SERVER_MessageHandler client_handlers[] = { GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN, 0}, {&handle_local_multicast, NULL, GNUNET_MESSAGE_TYPE_MESH_MULTICAST, 0}, + {&handle_local_ack, NULL, + GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK, + sizeof (struct GNUNET_MESH_LocalAck)}, {NULL, NULL, 0, 0} }; -- 2.25.1