#include "gnunet_statistics_service.h"
#include "gnunet_dv_service.h"
#include "gnunet_transport_service.h"
-#include "../transport/plugin_transport.h"
+#include "gnunet_transport_plugin.h"
#include "dv.h"
#define DEBUG_TEMPLATE GNUNET_NO
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);
plugin = GNUNET_malloc (sizeof (struct Plugin));
plugin->env = env;
- plugin->dv_handle = GNUNET_DV_connect(env->sched, env->cfg, &handle_dv_message_received, plugin);
+ plugin->dv_handle = GNUNET_DV_connect(env->cfg, &handle_dv_message_received, plugin);
if (plugin->dv_handle == NULL)
{