From: Christian Grothoff Date: Fri, 6 Jan 2012 15:35:10 +0000 (+0000) Subject: -document FIXMEs, fix some minor issue X-Git-Tag: initial-import-from-subversion-38251~15397 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79a1640fc8d082b7f61a0b00ee070c8717009a1f;p=oweals%2Fgnunet.git -document FIXMEs, fix some minor issue --- 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 @@ * @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 #include @@ -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;