summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-11-01 15:47:30 +0100
committerJulius Bünger <buenger@mytum.de>2018-11-01 15:49:24 +0100
commitd40df54e4b08e7388ac83dfe8d52c12c5ae3fb52 (patch)
tree884e7091bf39535b6934edc7e09479d57d0a4f3a /src
parentfe55e9455223f37e0a86ca181825158916fc1fb8 (diff)
RPS: Add more multi-hop statistics
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 9b6b3b7c6..dec921903 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3624,6 +3624,14 @@ handle_peer_pull_reply (void *cls,
"# pull reply messages received",
1,
GNUNET_NO);
+ if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
+ &channel_ctx->peer_ctx->peer_id))
+ {
+ GNUNET_STATISTICS_update (stats,
+ "# pull reply messages received (multi-hop peer)",
+ 1,
+ GNUNET_NO);
+ }
}
#ifdef ENABLE_MALICIOUS