+#if DEBUG_DV_MESSAGES
+ char *my_id;
+
+ my_id = GNUNET_strdup (GNUNET_i2s (plugin->env->my_identity));
+ GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "plugin_transport_dv",
+ _("%s Received message from %s of type %d, distance %u!\n"),
+ my_id, GNUNET_i2s (sender),
+ ntohs (((struct GNUNET_MessageHeader *) msg)->type),
+ distance);
+ GNUNET_free_non_null (my_id);
+#endif
+ struct GNUNET_ATS_Information ats[2];
+
+ ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
+ ats[0].value = htonl (distance);
+ ats[1].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR);
+ ats[1].value = htonl (0);
+
+ plugin->env->receive (plugin->env->cls, sender,
+ (struct GNUNET_MessageHeader *) msg,
+ (const struct GNUNET_ATS_Information *) &ats,
+ 2, NULL, sender_address, sender_address_len);