gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13884 - gnunet/src/dv


From: gnunet
Subject: [GNUnet-SVN] r13884 - gnunet/src/dv
Date: Tue, 7 Dec 2010 11:36:24 +0100

Author: wachs
Date: 2010-12-07 11:36:24 +0100 (Tue, 07 Dec 2010)
New Revision: 13884

Modified:
   gnunet/src/dv/plugin_transport_dv.c
Log:
modified reiceive call


Modified: gnunet/src/dv/plugin_transport_dv.c
===================================================================
--- gnunet/src/dv/plugin_transport_dv.c 2010-12-07 08:26:28 UTC (rev 13883)
+++ gnunet/src/dv/plugin_transport_dv.c 2010-12-07 10:36:24 UTC (rev 13884)
@@ -162,11 +162,18 @@
                    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);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]