diff options
Diffstat (limited to 'src/rps/rps_api.c')
-rw-r--r-- | src/rps/rps_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c index 504f28b92..ccd480086 100644 --- a/src/rps/rps_api.c +++ b/src/rps/rps_api.c | |||
@@ -389,12 +389,12 @@ GNUNET_RPS_seed_ids (struct GNUNET_RPS_Handle *h, | |||
389 | n * sizeof (struct GNUNET_PeerIdentity); | 389 | n * sizeof (struct GNUNET_PeerIdentity); |
390 | /* The number of peers that fits in one message together with | 390 | /* The number of peers that fits in one message together with |
391 | * the respective header */ | 391 | * the respective header */ |
392 | num_peers_max = (GNUNET_SERVER_MAX_MESSAGE_SIZE - | 392 | num_peers_max = (GNUNET_MAX_MESSAGE_SIZE - |
393 | sizeof (struct GNUNET_RPS_CS_SeedMessage)) / | 393 | sizeof (struct GNUNET_RPS_CS_SeedMessage)) / |
394 | sizeof (struct GNUNET_PeerIdentity); | 394 | sizeof (struct GNUNET_PeerIdentity); |
395 | tmp_peer_pointer = ids; | 395 | tmp_peer_pointer = ids; |
396 | 396 | ||
397 | while (GNUNET_SERVER_MAX_MESSAGE_SIZE < size_needed) | 397 | while (GNUNET_MAX_MESSAGE_SIZE < size_needed) |
398 | { | 398 | { |
399 | ev = GNUNET_MQ_msg_extra (msg, num_peers_max * sizeof (struct GNUNET_PeerIdentity), | 399 | ev = GNUNET_MQ_msg_extra (msg, num_peers_max * sizeof (struct GNUNET_PeerIdentity), |
400 | GNUNET_MESSAGE_TYPE_RPS_CS_SEED); | 400 | GNUNET_MESSAGE_TYPE_RPS_CS_SEED); |
@@ -463,12 +463,12 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, | |||
463 | num_peers * sizeof (struct GNUNET_PeerIdentity); | 463 | num_peers * sizeof (struct GNUNET_PeerIdentity); |
464 | /* The number of peers that fit in one message together with | 464 | /* The number of peers that fit in one message together with |
465 | * the respective header */ | 465 | * the respective header */ |
466 | num_peers_max = (GNUNET_SERVER_MAX_MESSAGE_SIZE - | 466 | num_peers_max = (GNUNET_MAX_MESSAGE_SIZE - |
467 | sizeof (struct GNUNET_RPS_CS_SeedMessage)) / | 467 | sizeof (struct GNUNET_RPS_CS_SeedMessage)) / |
468 | sizeof (struct GNUNET_PeerIdentity); | 468 | sizeof (struct GNUNET_PeerIdentity); |
469 | tmp_peer_pointer = peer_ids; | 469 | tmp_peer_pointer = peer_ids; |
470 | 470 | ||
471 | while (GNUNET_SERVER_MAX_MESSAGE_SIZE < size_needed) | 471 | while (GNUNET_MAX_MESSAGE_SIZE < size_needed) |
472 | { | 472 | { |
473 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 473 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
474 | "Too many peers to send at once, sending %" PRIu32 " (all we can so far)\n", | 474 | "Too many peers to send at once, sending %" PRIu32 " (all we can so far)\n", |