aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-06 15:35:10 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-06 15:35:10 +0000
commit79a1640fc8d082b7f61a0b00ee070c8717009a1f (patch)
tree67ae25b5ae2bf3a5bfc3b7c0b15c35e979c65472 /src/exit
parenta07e833bb45ff9b3718c512d3e61dcaf88d9eaba (diff)
downloadgnunet-79a1640fc8d082b7f61a0b00ee070c8717009a1f.tar.gz
gnunet-79a1640fc8d082b7f61a0b00ee070c8717009a1f.zip
-document FIXMEs, fix some minor issue
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-daemon-exit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index ca6ec7544..7097d71a0 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -23,6 +23,12 @@
23 * @brief tool to allow IP traffic exit from the GNUnet mesh to the Internet 23 * @brief tool to allow IP traffic exit from the GNUnet mesh to the Internet
24 * @author Philipp Toelke 24 * @author Philipp Toelke
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 *
27 * TODO:
28 * - setup_fresh_address is not implemented
29 * - various functions are not documented
30 * - update_state_map is dead, do we need something like it still?
31 * - need proper message headers for mesh P2P messages
26 */ 32 */
27#include <platform.h> 33#include <platform.h>
28#include <gnunet_common.h> 34#include <gnunet_common.h>
@@ -1014,7 +1020,8 @@ prepare_ipv4_packet (const void *payload, size_t payload_length,
1014 pkt4->header_length = sizeof (struct ip4_header) / 4; 1020 pkt4->header_length = sizeof (struct ip4_header) / 4;
1015 pkt4->diff_serv = 0; 1021 pkt4->diff_serv = 0;
1016 pkt4->total_length = htons ((uint16_t) (sizeof (struct ip4_header) + len)); 1022 pkt4->total_length = htons ((uint16_t) (sizeof (struct ip4_header) + len));
1017 pkt4->identification = 0; // FIXME: pick at random! 1023 pkt4->identification = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
1024 65536);
1018 pkt4->flags = 0; 1025 pkt4->flags = 0;
1019 pkt4->fragmentation_offset = 0; 1026 pkt4->fragmentation_offset = 0;
1020 pkt4->ttl = 255; 1027 pkt4->ttl = 255;