aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-13 13:06:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-13 13:06:01 +0000
commitf40b9f4d92412da3a1461f16069c8bbb425bd136 (patch)
treea1f9df4553aace1af037e465fe39b0f00a05c116 /src/transport/plugin_transport_unix.c
parent86ad1393cdf6c8b37437c330fce25ebfffbc8ffd (diff)
downloadgnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.tar.gz
gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.zip
compile
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index da08c5a24..14034e683 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -719,12 +719,10 @@ unix_demultiplexer (struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
719 const struct GNUNET_MessageHeader *currhdr, 719 const struct GNUNET_MessageHeader *currhdr,
720 const struct sockaddr_un *un, size_t fromlen) 720 const struct sockaddr_un *un, size_t fromlen)
721{ 721{
722 struct GNUNET_TRANSPORT_ATS_Information distance[2]; 722 struct GNUNET_TRANSPORT_ATS_Information distance;
723 723
724 distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); 724 distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
725 distance[0].value = htonl (UNIX_DIRECT_DISTANCE); 725 distance.value = htonl (UNIX_DIRECT_DISTANCE);
726 distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
727 distance[1].value = htonl (0);
728 726
729 GNUNET_assert (fromlen >= sizeof (struct sockaddr_un)); 727 GNUNET_assert (fromlen >= sizeof (struct sockaddr_un));
730 728
@@ -734,7 +732,7 @@ unix_demultiplexer (struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
734#endif 732#endif
735 plugin->env->receive (plugin->env->cls, sender, currhdr, 733 plugin->env->receive (plugin->env->cls, sender, currhdr,
736 (const struct GNUNET_TRANSPORT_ATS_Information *) 734 (const struct GNUNET_TRANSPORT_ATS_Information *)
737 &distance, 2, NULL, un->sun_path, 735 &distance, 1, NULL, un->sun_path,
738 strlen (un->sun_path) + 1); 736 strlen (un->sun_path) + 1);
739} 737}
740 738