summaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-05-23 13:31:12 +0000
committerBart Polot <bart@net.in.tum.de>2013-05-23 13:31:12 +0000
commitf7014ee94fa677b8192c9deb703ff1e8bd8ec76c (patch)
tree86b69a847bf1ab3be103deeb88073e953ba87023 /src/dht/gnunet-service-dht_neighbours.c
parent0f08bc7705282c34fc0d14a6a88d87369ecb1614 (diff)
downloadgnunet-f7014ee94fa677b8192c9deb703ff1e8bd8ec76c.tar.gz
gnunet-f7014ee94fa677b8192c9deb703ff1e8bd8ec76c.zip
- explicitly log requests dropped due to TTL exhaustion
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 06e13d0b1..e0dbcdb56 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -858,6 +858,9 @@ get_forward_count (uint32_t hop_count, uint32_t target_replication)
858 if (hop_count > GDS_NSE_get () * 4.0) 858 if (hop_count > GDS_NSE_get () * 4.0)
859 { 859 {
860 /* forcefully terminate */ 860 /* forcefully terminate */
861 GNUNET_STATISTICS_update (GDS_stats,
862 gettext_noop ("# requests TTL-dropped"),
863 1, GNUNET_NO);
861 return 0; 864 return 0;
862 } 865 }
863 if (hop_count > GDS_NSE_get () * 2.0) 866 if (hop_count > GDS_NSE_get () * 2.0)