From: Bart Polot Date: Fri, 11 Mar 2011 17:03:44 +0000 (+0000) Subject: Resolved some weird conflicts X-Git-Tag: initial-import-from-subversion-38251~18991 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=041be853a623878090aa6f29e531b76fc87d2a25;p=oweals%2Fgnunet.git Resolved some weird conflicts --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 449b8984c..e63b1ba40 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -210,6 +210,26 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) return; } +/** + * Core handler for path creation + * + * @param cls closure + * @param message message + * @param peer peer identity this notification is about + * @param atsi performance data + * + */ +static int +handle_mesh_path_create (void *cls, + const struct GNUNET_PeerIdentity *peer, + const struct GNUNET_MessageHeader *message, + const struct GNUNET_TRANSPORT_ATS_Information + *atsi) +{ + /* Extract path */ + return GNUNET_OK; +} + /** * Core handler for mesh network traffic * @@ -228,10 +248,10 @@ handle_mesh_network_traffic (void *cls, { if(GNUNET_MESSAGE_TYPE_MESH_DATA_GO == ntohs(message->type)) { /* Retransmit to next in path of tunnel identified by message */ - return 0; + return GNUNET_OK; } else { /* GNUNET_MESSAGE_TYPE_MESH_DATA_BACK */ /* Retransmit to previous in path of tunnel identified by message */ - return 0; + return GNUNET_OK; } } @@ -239,6 +259,7 @@ handle_mesh_network_traffic (void *cls, * Functions to handle messages from core */ static struct GNUNET_CORE_MessageHandler core_handlers[] = { + {&handle_mesh_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0}, {&handle_mesh_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_GO, 0}, {&handle_mesh_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_BACK, 0}, {NULL, 0, 0} @@ -248,7 +269,9 @@ static struct GNUNET_CORE_MessageHandler core_handlers[] = { * Functions to handle messages from clients */ static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = { - {&handle_mesh_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0}, + {&handle_local_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0}, + {&handle_local_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_GO, 0}, + {&handle_local_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_BACK, 0}, {NULL, NULL, 0, 0} };