diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-13 13:06:01 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-13 13:06:01 +0000 |
commit | f40b9f4d92412da3a1461f16069c8bbb425bd136 (patch) | |
tree | a1f9df4553aace1af037e465fe39b0f00a05c116 /src/transport/plugin_transport_udp.c | |
parent | 86ad1393cdf6c8b37437c330fce25ebfffbc8ffd (diff) | |
download | gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.tar.gz gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.zip |
compile
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index adb9277c4..0b37b9be4 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -759,17 +759,15 @@ process_inbound_tokenized_messages (void *cls, void *client, | |||
759 | { | 759 | { |
760 | struct Plugin *plugin = cls; | 760 | struct Plugin *plugin = cls; |
761 | struct SourceInformation *si = client; | 761 | struct SourceInformation *si = client; |
762 | struct GNUNET_TRANSPORT_ATS_Information distance[2]; | 762 | struct GNUNET_TRANSPORT_ATS_Information distance; |
763 | 763 | ||
764 | /* setup ATS */ | 764 | /* setup ATS */ |
765 | distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); | 765 | distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); |
766 | distance[0].value = htonl (1); | 766 | distance.value = htonl (1); |
767 | distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); | ||
768 | distance[1].value = htonl (0); | ||
769 | 767 | ||
770 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 768 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
771 | "Giving Session %X %s to transport\n", si->session, GNUNET_i2s(&si->session->target)); | 769 | "Giving Session %X %s to transport\n", si->session, GNUNET_i2s(&si->session->target)); |
772 | plugin->env->receive (plugin->env->cls, &si->sender, hdr, distance, 2, si->session, | 770 | plugin->env->receive (plugin->env->cls, &si->sender, hdr, &distance, 1, si->session, |
773 | si->arg, si->args); | 771 | si->arg, si->args); |
774 | } | 772 | } |
775 | 773 | ||