summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-05-06 19:31:48 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-05-06 19:31:48 +0200
commit63a28d5951594455e050ea3a68ab5b63cb093964 (patch)
treeef66acd00ed0ff6a2e700870ebbd09f5ad9fb2d3 /src/routing.h
parent8c04d112dd3c63ee0a618bec5d24877797fb6d3a (diff)
Reset the expire time of routing table on startup
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 be1ae8d..aee2c8e 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -43,6 +43,7 @@ bool routing_interested(struct nodeid* id);
bool routing_offer(struct nodeid* id, struct entry **dest);
void routing_oldest(struct entry** dest);
size_t routing_closest(struct nodeid* needle, size_t n, struct entry** res);
+void routing_reset_expire(time_t expire);
void routing_status(int* filled, int* size, double* load_factor, size_t load_factor_len);
struct entry* routing_get(struct nodeid* id);