diff options
author | Julius Bünger <buenger@mytum.de> | 2018-11-01 15:47:30 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-11-01 15:49:24 +0100 |
commit | d40df54e4b08e7388ac83dfe8d52c12c5ae3fb52 (patch) | |
tree | 884e7091bf39535b6934edc7e09479d57d0a4f3a /src | |
parent | fe55e9455223f37e0a86ca181825158916fc1fb8 (diff) | |
download | gnunet-d40df54e4b08e7388ac83dfe8d52c12c5ae3fb52.tar.gz gnunet-d40df54e4b08e7388ac83dfe8d52c12c5ae3fb52.zip |
RPS: Add more multi-hop statistics
Diffstat (limited to 'src')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 8 |
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, | |||
3624 | "# pull reply messages received", | 3624 | "# pull reply messages received", |
3625 | 1, | 3625 | 1, |
3626 | GNUNET_NO); | 3626 | GNUNET_NO); |
3627 | if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop, | ||
3628 | &channel_ctx->peer_ctx->peer_id)) | ||
3629 | { | ||
3630 | GNUNET_STATISTICS_update (stats, | ||
3631 | "# pull reply messages received (multi-hop peer)", | ||
3632 | 1, | ||
3633 | GNUNET_NO); | ||
3634 | } | ||
3627 | } | 3635 | } |
3628 | 3636 | ||
3629 | #ifdef ENABLE_MALICIOUS | 3637 | #ifdef ENABLE_MALICIOUS |