aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-06 17:43:49 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-06 17:43:49 +0000
commit197c25b64e8cf36d25914dccc45247cb7e70f4b3 (patch)
treeff8ad89d2260463da08925061d1fac8c2dd71fe8 /src/transport/plugin_transport_wlan.c
parent00392968edfba24d572cc5fe200b62f51b597f5e (diff)
downloadgnunet-197c25b64e8cf36d25914dccc45247cb7e70f4b3.tar.gz
gnunet-197c25b64e8cf36d25914dccc45247cb7e70f4b3.zip
- modified transport plugin interface to support ATS
- modified transport plugins to support ATS
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index de868a427..98caaa4f1 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1750,8 +1750,15 @@ wlan_process_helper (void *cls,
1750 } 1750 }
1751 } 1751 }
1752 //"receive" the message 1752 //"receive" the message
1753 struct GNUNET_TRANSPORT_ATS_Information distance[2];
1754 distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
1755 distance[0].value = htonl (1);
1756 distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
1757 distance[1].value = htonl (0);
1758
1753 plugin->env->receive(plugin, &session->target, 1759 plugin->env->receive(plugin, &session->target,
1754 temp_hdr, 1, session, session->addr, sizeof(session->addr)); 1760 temp_hdr, (const struct GNUNET_TRANSPORT_ATS_Information *) &distance, 2,
1761 session, session->addr, sizeof(session->addr));
1755 } 1762 }
1756 1763
1757 else if (ntohs(hdr->type) == GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT) 1764 else if (ntohs(hdr->type) == GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT)