diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-01-06 15:35:10 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-01-06 15:35:10 +0000 |
commit | ffee0db8e38e4630ccf7391f699a7a0cb3c0462c (patch) | |
tree | 67ae25b5ae2bf3a5bfc3b7c0b15c35e979c65472 /src/exit | |
parent | b6a97a080d056c959aa74fa04b8e896c13f3a9a7 (diff) |
-document FIXMEs, fix some minor issue
git-svn-id: https://gnunet.org/svn/gnunet@19036 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index ca6ec75442..7097d71a0c 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c @@ -23,6 +23,12 @@ * @brief tool to allow IP traffic exit from the GNUnet mesh to the Internet * @author Philipp Toelke * @author Christian Grothoff + * + * TODO: + * - setup_fresh_address is not implemented + * - various functions are not documented + * - update_state_map is dead, do we need something like it still? + * - need proper message headers for mesh P2P messages */ #include <platform.h> #include <gnunet_common.h> @@ -1014,7 +1020,8 @@ prepare_ipv4_packet (const void *payload, size_t payload_length, pkt4->header_length = sizeof (struct ip4_header) / 4; pkt4->diff_serv = 0; pkt4->total_length = htons ((uint16_t) (sizeof (struct ip4_header) + len)); - pkt4->identification = 0; // FIXME: pick at random! + pkt4->identification = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, + 65536); pkt4->flags = 0; pkt4->fragmentation_offset = 0; pkt4->ttl = 255; |