diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-27 07:40:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-27 07:40:39 +0000 |
commit | 8d6058c34df98102009ca0a9456da0bcb06d39f2 (patch) | |
tree | e93287bf9a78df33dc454005418548a3b1bee52b /src/fragmentation/test_fragmentation.c | |
parent | 22dafb003418aab11e036230b3761116c397d239 (diff) | |
download | gnunet-8d6058c34df98102009ca0a9456da0bcb06d39f2.tar.gz gnunet-8d6058c34df98102009ca0a9456da0bcb06d39f2.zip |
fix
Diffstat (limited to 'src/fragmentation/test_fragmentation.c')
-rw-r--r-- | src/fragmentation/test_fragmentation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fragmentation/test_fragmentation.c b/src/fragmentation/test_fragmentation.c index 4415664a4..25f1c2053 100644 --- a/src/fragmentation/test_fragmentation.c +++ b/src/fragmentation/test_fragmentation.c | |||
@@ -208,7 +208,7 @@ run (void *cls, | |||
208 | for (i=0;i<NUM_MSGS;i++) | 208 | for (i=0;i<NUM_MSGS;i++) |
209 | { | 209 | { |
210 | msg->type = htons ((uint16_t) i); | 210 | msg->type = htons ((uint16_t) i); |
211 | msg->size = htons ( 1 + (17 * i) % (32 * 1024)); | 211 | msg->size = htons (sizeof (struct GNUNET_MessageHeader) + (17 * i) % (32 * 1024)); |
212 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */, | 212 | frags[i] = GNUNET_FRAGMENT_context_create (NULL /* no stats */, |
213 | MTU, | 213 | MTU, |
214 | &trackers[i], | 214 | &trackers[i], |