diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-05-06 19:31:48 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-05-06 19:31:48 +0200 |
| commit | 63a28d5951594455e050ea3a68ab5b63cb093964 (patch) | |
| tree | ef66acd00ed0ff6a2e700870ebbd09f5ad9fb2d3 /src/routing.h | |
| parent | 8c04d112dd3c63ee0a618bec5d24877797fb6d3a (diff) | |
Reset the expire time of routing table on startup
Diffstat (limited to 'src/routing.h')
| -rw-r--r-- | src/routing.h | 1 |
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); |
