projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe55e94
)
RPS: Add more multi-hop statistics
author
Julius Bünger
<buenger@mytum.de>
Thu, 1 Nov 2018 14:47:30 +0000
(15:47 +0100)
committer
Julius Bünger
<buenger@mytum.de>
Thu, 1 Nov 2018 14:49:24 +0000
(15:49 +0100)
src/rps/gnunet-service-rps.c
patch
|
blob
|
history
diff --git
a/src/rps/gnunet-service-rps.c
b/src/rps/gnunet-service-rps.c
index 9b6b3b7c698f3c30bc6a042842f13f8147fa33fa..dec92190319fd649d0eedd8aa907e052ffa0df24 100644
(file)
--- 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