From afef053a2ee08002fe50f3e1842e5c8153e6c507 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Mar 2013 11:59:49 +0000 Subject: -no longer pass distance information from non-DV plugins --- src/transport/plugin_transport_unix.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/transport/plugin_transport_unix.c') diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index e5b591bc4..a27144efa 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -796,13 +796,9 @@ unix_demultiplexer (struct Plugin *plugin, struct GNUNET_PeerIdentity *sender, const struct GNUNET_MessageHeader *currhdr, const struct sockaddr_un *un, size_t fromlen) { - struct GNUNET_ATS_Information ats[2]; struct Session *s = NULL; struct GNUNET_HELLO_Address * addr; - ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE); - ats[0].value = htonl (UNIX_DIRECT_DISTANCE); - ats[1] = plugin->ats_network; GNUNET_break (ntohl(plugin->ats_network.value) != GNUNET_ATS_NET_UNSPECIFIED); GNUNET_assert (fromlen >= sizeof (struct sockaddr_un)); @@ -826,11 +822,11 @@ unix_demultiplexer (struct Plugin *plugin, struct GNUNET_PeerIdentity *sender, s, un->sun_path, strlen (un->sun_path) + 1); plugin->env->update_address_metrics (plugin->env->cls, - sender, - un->sun_path, - strlen (un->sun_path) + 1, - s, - (struct GNUNET_ATS_Information *) &ats, 2); + sender, + un->sun_path, + strlen (un->sun_path) + 1, + s, + &plugin->ats_network, 1); GNUNET_free (addr); } -- cgit v1.2.3