projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b53e3b
)
Changed test to reflect smaller mtu
author
David Brodski
<david@brodski.eu>
Tue, 26 Jul 2011 22:53:38 +0000
(22:53 +0000)
committer
David Brodski
<david@brodski.eu>
Tue, 26 Jul 2011 22:53:38 +0000
(22:53 +0000)
src/fragmentation/test_fragmentation.c
patch
|
blob
|
history
diff --git
a/src/fragmentation/test_fragmentation.c
b/src/fragmentation/test_fragmentation.c
index 70fd84944d45078fea0bc9ef100e93efd36754e8..4415664a4aca3e2cb9ce0f6b3eb5b08617bea749 100644
(file)
--- a/
src/fragmentation/test_fragmentation.c
+++ b/
src/fragmentation/test_fragmentation.c
@@
-32,7
+32,7
@@
/**
* Number of messages to transmit (note: each uses ~32k memory!)
*/
-#define NUM_MSGS 500
+#define NUM_MSGS 500
0
/**
* MTU to force on fragmentation (must be > 1k + 12)
@@
-208,7
+208,7
@@
run (void *cls,
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],