[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8680 - GNUnet/src/applications/dv_dht/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8680 - GNUnet/src/applications/dv_dht/module |
Date: |
Mon, 13 Jul 2009 14:12:36 -0600 |
Author: nevans
Date: 2009-07-13 14:12:35 -0600 (Mon, 13 Jul 2009)
New Revision: 8680
Modified:
GNUnet/src/applications/dv_dht/module/routing.c
Log:
more detailed route logging info
Modified: GNUnet/src/applications/dv_dht/module/routing.c
===================================================================
--- GNUnet/src/applications/dv_dht/module/routing.c 2009-07-12 22:33:16 UTC
(rev 8679)
+++ GNUnet/src/applications/dv_dht/module/routing.c 2009-07-13 20:12:35 UTC
(rev 8680)
@@ -513,6 +513,16 @@
ntohl (result->hop_count), GNUNET_YES,
coreAPI->my_identity, key);
}
+
+ if ((debug_routes_extended) && (dhtlog != NULL))
+ {
+ queryuid = ntohl (result->queryuid);
+ dhtlog->insert_route (NULL, queryuid,
+ DHTLOG_RESULT,
+ ntohl (result->hop_count), GNUNET_YES,
+ coreAPI->my_identity, key, NULL,
+ NULL);
+ }
if (stats != NULL)
stats->change (stat_replies_routed, 1);
}
@@ -709,6 +719,14 @@
hop_count, GNUNET_YES, coreAPI->my_identity,
&get->key);
}
+
+ if ((debug_routes_extended) && (dhtlog != NULL))
+ {
+ queryuid = ntohl (get->queryuid);
+ dhtlog->insert_route (NULL, ntohl (get->queryuid), DHTLOG_GET,
+ hop_count, GNUNET_YES, coreAPI->my_identity,
+ &get->key, sender, NULL);
+ }
}
if (total > MAX_RESULTS)
@@ -880,6 +898,15 @@
hop_count, GNUNET_YES,
coreAPI->my_identity, &put->key);
}
+
+ if ((debug_routes_extended) && (dhtlog != NULL))
+ {
+ queryuid = ntohl (put->queryuid);
+ dhtlog->insert_route (NULL, queryuid, DHTLOG_PUT,
+ hop_count, GNUNET_YES,
+ coreAPI->my_identity, &put->key, sender,
+ NULL);
+ }
dstore->put (&put->key,
ntohl (put->type),
CONTENT_LIFETIME + now,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8680 - GNUnet/src/applications/dv_dht/module,
gnunet <=