summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-05-04 00:39:13 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-05-04 00:39:13 +0200
commit2c4af77f5f7231b560c344ccaff3cc73f0d616e9 (patch)
tree44dbe299c49b35399fb755ef81929b32af9312fd /src/routing.h
parentbdb9db6458594d9265c86362d248e30fcf8ea26e (diff)
Refactor lookup init and add routing table metric
I think it would be nice to see the detailed routing table occupancy. I've added a metric that exposes the current occupancy of each bucket. That should provide me some insight into the current distribution of nodes and if we need to find a way to keep the closer buckets alive.
Diffstat (limited to 'src/routing.h')
-rw-r--r--src/routing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routing.h b/src/routing.h
index 63e7fa2..be1ae8d 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -37,6 +37,7 @@ extern struct entry *table;
extern int table_size;
void routing_init(struct nodeid* myid);
+void routing_update_metrics();
void routing_flush();
bool routing_interested(struct nodeid* id);
bool routing_offer(struct nodeid* id, struct entry **dest);