aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r--src/rps/gnunet-service-rps.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 63d4c1865..1871ef006 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3500,6 +3500,15 @@ handle_peer_push (void *cls,
3500 if (channel_ctx->peer_ctx->sub == msub) 3500 if (channel_ctx->peer_ctx->sub == msub)
3501 { 3501 {
3502 GNUNET_STATISTICS_update(stats, "# push message received", 1, GNUNET_NO); 3502 GNUNET_STATISTICS_update(stats, "# push message received", 1, GNUNET_NO);
3503 if (NULL != map_single_hop &&
3504 GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
3505 peer))
3506 {
3507 GNUNET_STATISTICS_update (stats,
3508 "# push message received (multi-hop peer)",
3509 1,
3510 GNUNET_NO);
3511 }
3503 } 3512 }
3504 3513
3505 #if ENABLE_MALICIOUS 3514 #if ENABLE_MALICIOUS
@@ -3881,6 +3890,15 @@ send_push (struct PeerContext *peer_ctx)
3881 "# push send issued", 3890 "# push send issued",
3882 1, 3891 1,
3883 GNUNET_NO); 3892 GNUNET_NO);
3893 if (NULL != map_single_hop &&
3894 GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
3895 &peer_ctx->peer_id))
3896 {
3897 GNUNET_STATISTICS_update (stats,
3898 "# push send issued (multi-hop peer)",
3899 1,
3900 GNUNET_NO);
3901 }
3884 } 3902 }
3885} 3903}
3886 3904