From: Matthias Wachs Date: Tue, 7 Dec 2010 10:36:24 +0000 (+0000) Subject: modified reiceive call X-Git-Tag: initial-import-from-subversion-38251~19545 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00df06aed303ed37c5317753dcb2fb8d71780029;p=oweals%2Fgnunet.git modified reiceive call --- diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c index 352e8ce2e..697ca0c4c 100644 --- a/src/dv/plugin_transport_dv.c +++ b/src/dv/plugin_transport_dv.c @@ -162,11 +162,18 @@ void handle_dv_message_received (void *cls, my_id, GNUNET_i2s(sender), ntohs(((struct GNUNET_MessageHeader *)msg)->type), distance); GNUNET_free_non_null(my_id); #endif + struct GNUNET_TRANSPORT_ATS_Information ats[2]; + ats[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); + ats[0].value = htonl (distance); + ats[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); + ats[1].value = htonl (0); + plugin->env->receive(plugin->env->cls, sender, (struct GNUNET_MessageHeader *)msg, - distance, - NULL, + (const struct GNUNET_TRANSPORT_ATS_Information *) &ats, + 2, + NULL, sender_address, sender_address_len);