aboutsummaryrefslogtreecommitdiff
path: root/src/dv/plugin_transport_dv.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-27 09:16:06 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-27 09:16:06 +0000
commitea0cc0ab9f05fd2a7d188e5eaa86cc8a5ae8f599 (patch)
treef40d0b041abb2b0315649c49112abd5ad0dbe8c1 /src/dv/plugin_transport_dv.c
parent826ff84e75d9133c6493e5c4bc0fd89342b8a7bb (diff)
downloadgnunet-ea0cc0ab9f05fd2a7d188e5eaa86cc8a5ae8f599.tar.gz
gnunet-ea0cc0ab9f05fd2a7d188e5eaa86cc8a5ae8f599.zip
-fixing #2837
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r--src/dv/plugin_transport_dv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index 84afb8344..f094075e8 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -172,7 +172,16 @@ struct Plugin
172static void 172static void
173notify_distance_change (struct Session *session) 173notify_distance_change (struct Session *session)
174{ 174{
175 GNUNET_break (0); // FIXME: need extended plugin API! 175 struct Plugin *plugin = session->plugin;
176 struct GNUNET_ATS_Information ats;
177
178 ats.type = htonl ((uint32_t) GNUNET_ATS_QUALITY_NET_DISTANCE);
179 ats.value = htonl (session->distance);
180 plugin->env->update_address_metrics (plugin->env->cls,
181 &session->sender,
182 "", 0,
183 session,
184 &ats, 1);
176} 185}
177 186
178 187