aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.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_udp.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_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 4bf66f206..169e161e2 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1474,7 +1474,14 @@ udp_demultiplexer(struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
1474 "Sending message type %d to transport!\n", 1474 "Sending message type %d to transport!\n",
1475 ntohs(currhdr->type)); 1475 ntohs(currhdr->type));
1476#endif 1476#endif
1477 plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE, 1477 struct GNUNET_TRANSPORT_ATS_Information distance[2];
1478 distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
1479 distance[0].value = htonl (UDP_DIRECT_DISTANCE);
1480 distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
1481 distance[1].value = htonl (0);
1482
1483 plugin->env->receive (plugin->env->cls, sender, currhdr,
1484 (const struct GNUNET_TRANSPORT_ATS_Information *) &distance, 2,
1478 NULL, sender_addr, fromlen); 1485 NULL, sender_addr, fromlen);
1479 } 1486 }
1480 1487