gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19036 - gnunet/src/exit


From: gnunet
Subject: [GNUnet-SVN] r19036 - gnunet/src/exit
Date: Fri, 6 Jan 2012 16:35:10 +0100

Author: grothoff
Date: 2012-01-06 16:35:10 +0100 (Fri, 06 Jan 2012)
New Revision: 19036

Modified:
   gnunet/src/exit/gnunet-daemon-exit.c
Log:
-document FIXMEs, fix some minor issue

Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c        2012-01-06 15:31:53 UTC (rev 
19035)
+++ gnunet/src/exit/gnunet-daemon-exit.c        2012-01-06 15:35:10 UTC (rev 
19036)
@@ -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 @@
   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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]