summaryrefslogtreecommitdiff
path: root/src/transport/test_communicator_basic.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-13 20:44:53 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-13 20:44:53 +0200
commitb5f17eecddb693129387e4d363c97452f2871794 (patch)
treef4c6b45e6ecb1aa635f1f2c1b821fb95f21cdb73 /src/transport/test_communicator_basic.c
parent1ea833b91a139d163e7d041aede4eefe7789ff83 (diff)
parent5ebf4c2f377f10168f1385ef171be840a64267f1 (diff)
Merge remote-tracking branch 'origin/master' into spaeth/escrow_pluginsspaeth/escrow_plugins
Diffstat (limited to 'src/transport/test_communicator_basic.c')
-rw-r--r--src/transport/test_communicator_basic.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c
index aa02bda93..e3573ac2c 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -221,7 +221,7 @@ make_payload (size_t payload_size)
GNUNET_assert (payload_size >= 8); // So that out timestamp fits
ts = GNUNET_TIME_absolute_get ();
ts_n = GNUNET_TIME_absolute_hton (ts);
- memset (payload, 0, payload_size);
+ memset (payload, 'a', payload_size);
memcpy (payload, &ts_n, sizeof (struct GNUNET_TIME_AbsoluteNBO));
return payload;
}
@@ -367,8 +367,9 @@ add_queue_cb (void *cls,
"Queue established, starting test...\n");
start_short = GNUNET_TIME_absolute_get ();
my_tc = tc_h;
- if (0 != mtu)
- long_message_size = mtu - 4; /* Dummy message header overhead */
+ if (0 != mtu) /* Message header overhead */
+ long_message_size = mtu - sizeof(struct GNUNET_TRANSPORT_SendMessageTo)
+ - sizeof(struct GNUNET_MessageHeader);
else
long_message_size = LONG_MESSAGE_SIZE;
phase = TP_BURST_SHORT;