aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-30 11:59:49 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-30 11:59:49 +0000
commitafef053a2ee08002fe50f3e1842e5c8153e6c507 (patch)
tree8ffc70786908ded09ee74007df75fe33f77d4b72 /src/transport/plugin_transport_http.c
parent4eb0a75f98349e55a405212404b258a987fb6145 (diff)
downloadgnunet-afef053a2ee08002fe50f3e1842e5c8153e6c507.tar.gz
gnunet-afef053a2ee08002fe50f3e1842e5c8153e6c507.zip
-no longer pass distance information from non-DV plugins
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 24d37cc34..88ab5cfed 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -188,20 +188,18 @@ http_plugin_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
188 struct Session *s = cls; 188 struct Session *s = cls;
189 struct Plugin *plugin = s->plugin; 189 struct Plugin *plugin = s->plugin;
190 struct GNUNET_TIME_Relative delay; 190 struct GNUNET_TIME_Relative delay;
191 struct GNUNET_ATS_Information atsi[2]; 191 struct GNUNET_ATS_Information atsi;
192 192
193 atsi[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE); 193 atsi.type = htonl (GNUNET_ATS_NETWORK_TYPE);
194 atsi[0].value = htonl (1); 194 atsi.value = session->ats_address_network_type;
195 atsi[1].type = htonl (GNUNET_ATS_NETWORK_TYPE);
196 atsi[1].value = session->ats_address_network_type;
197 GNUNET_break (session->ats_address_network_type != ntohl (GNUNET_ATS_NET_UNSPECIFIED)); 195 GNUNET_break (session->ats_address_network_type != ntohl (GNUNET_ATS_NET_UNSPECIFIED));
198 196
199 reschedule_session_timeout (session); 197 reschedule_session_timeout (session);
200 198
201 delay = 199 delay =
202 plugin->env->receive (plugin->env->cls, &s->target, message, 200 plugin->env->receive (plugin->env->cls, &s->target, message,
203 (const struct GNUNET_ATS_Information *) &atsi, 201 &atsi,
204 2, s, s->addr, s->addrlen); 202 1, s, s->addr, s->addrlen);
205 return delay; 203 return delay;
206} 204}
207 205