From: Bart Polot Date: Tue, 31 Jul 2012 14:52:20 +0000 (+0000) Subject: - dont reject local ack from client X-Git-Tag: initial-import-from-subversion-38251~12273 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7e2e6f55d1bf7ab87c9df180bfa6841480f99ab8;p=oweals%2Fgnunet.git - dont reject local ack from client --- 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} };