gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16215 - gnunet/src/fragmentation


From: gnunet
Subject: [GNUnet-SVN] r16215 - gnunet/src/fragmentation
Date: Wed, 27 Jul 2011 00:53:38 +0200

Author: brodski
Date: 2011-07-27 00:53:38 +0200 (Wed, 27 Jul 2011)
New Revision: 16215

Modified:
   gnunet/src/fragmentation/test_fragmentation.c
Log:
Changed test to reflect smaller mtu

Modified: gnunet/src/fragmentation/test_fragmentation.c
===================================================================
--- gnunet/src/fragmentation/test_fragmentation.c       2011-07-26 22:52:07 UTC 
(rev 16214)
+++ gnunet/src/fragmentation/test_fragmentation.c       2011-07-26 22:53:38 UTC 
(rev 16215)
@@ -32,7 +32,7 @@
 /**
  * Number of messages to transmit (note: each uses ~32k memory!)
  */
-#define NUM_MSGS 500
+#define NUM_MSGS 5000
 
 /**
  * MTU to force on fragmentation (must be > 1k + 12)
@@ -208,7 +208,7 @@
   for (i=0;i<NUM_MSGS;i++)
     {
       msg->type = htons ((uint16_t) i);
-      msg->size = htons (MTU + 1 + (17 * i) % (32 * 1024));
+      msg->size = htons ( 1 + (17 * i) % (32 * 1024));
       frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */, 
                                                 MTU,
                                                 &trackers[i],




reply via email to

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