aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-07 10:36:24 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-07 10:36:24 +0000
commit00df06aed303ed37c5317753dcb2fb8d71780029 (patch)
tree56d97f4051b67e7af05cc4425a9444c6d4716c59 /src/dv
parent275dea76f25c278583b23c80cedefc3c931f13be (diff)
downloadgnunet-00df06aed303ed37c5317753dcb2fb8d71780029.tar.gz
gnunet-00df06aed303ed37c5317753dcb2fb8d71780029.zip
modified reiceive call
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/plugin_transport_dv.c11
1 files changed, 9 insertions, 2 deletions
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,
162 my_id, GNUNET_i2s(sender), ntohs(((struct GNUNET_MessageHeader *)msg)->type), distance); 162 my_id, GNUNET_i2s(sender), ntohs(((struct GNUNET_MessageHeader *)msg)->type), distance);
163 GNUNET_free_non_null(my_id); 163 GNUNET_free_non_null(my_id);
164#endif 164#endif
165 struct GNUNET_TRANSPORT_ATS_Information ats[2];
166 ats[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
167 ats[0].value = htonl (distance);
168 ats[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
169 ats[1].value = htonl (0);
170
165 plugin->env->receive(plugin->env->cls, 171 plugin->env->receive(plugin->env->cls,
166 sender, 172 sender,
167 (struct GNUNET_MessageHeader *)msg, 173 (struct GNUNET_MessageHeader *)msg,
168 distance, 174 (const struct GNUNET_TRANSPORT_ATS_Information *) &ats,
169 NULL, 175 2,
176 NULL,
170 sender_address, 177 sender_address,
171 sender_address_len); 178 sender_address_len);
172 179