RPS: Add more multi-hop statistics
authorJulius Bünger <buenger@mytum.de>
Thu, 1 Nov 2018 14:47:30 +0000 (15:47 +0100)
committerJulius Bünger <buenger@mytum.de>
Thu, 1 Nov 2018 14:49:24 +0000 (15:49 +0100)
src/rps/gnunet-service-rps.c

index 9b6b3b7c698f3c30bc6a042842f13f8147fa33fa..dec92190319fd649d0eedd8aa907e052ffa0df24 100644 (file)
@@ -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