aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.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_unix.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_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c14
1 files changed, 5 insertions, 9 deletions
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,
796 const struct GNUNET_MessageHeader *currhdr, 796 const struct GNUNET_MessageHeader *currhdr,
797 const struct sockaddr_un *un, size_t fromlen) 797 const struct sockaddr_un *un, size_t fromlen)
798{ 798{
799 struct GNUNET_ATS_Information ats[2];
800 struct Session *s = NULL; 799 struct Session *s = NULL;
801 struct GNUNET_HELLO_Address * addr; 800 struct GNUNET_HELLO_Address * addr;
802 801
803 ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
804 ats[0].value = htonl (UNIX_DIRECT_DISTANCE);
805 ats[1] = plugin->ats_network;
806 GNUNET_break (ntohl(plugin->ats_network.value) != GNUNET_ATS_NET_UNSPECIFIED); 802 GNUNET_break (ntohl(plugin->ats_network.value) != GNUNET_ATS_NET_UNSPECIFIED);
807 803
808 GNUNET_assert (fromlen >= sizeof (struct sockaddr_un)); 804 GNUNET_assert (fromlen >= sizeof (struct sockaddr_un));
@@ -826,11 +822,11 @@ unix_demultiplexer (struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
826 s, un->sun_path, strlen (un->sun_path) + 1); 822 s, un->sun_path, strlen (un->sun_path) + 1);
827 823
828 plugin->env->update_address_metrics (plugin->env->cls, 824 plugin->env->update_address_metrics (plugin->env->cls,
829 sender, 825 sender,
830 un->sun_path, 826 un->sun_path,
831 strlen (un->sun_path) + 1, 827 strlen (un->sun_path) + 1,
832 s, 828 s,
833 (struct GNUNET_ATS_Information *) &ats, 2); 829 &plugin->ats_network, 1);
834 830
835 GNUNET_free (addr); 831 GNUNET_free (addr);
836} 832}