summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2024-01-28 09:01:22 +0100
committerJesper Jensen <jesper@jnsn.dev>2025-04-12 10:21:20 +0200
commitcd622b745254baafa21adf4b1b724e079652321a (patch)
treeb1faf03808a5f8729cf8a69f971c00cb9d662683 /src/routing.h
parent47d4780eb448f839fc6b0644135395f879080ba4 (diff)
I don't know
Diffstat (limited to 'src/routing.h')
-rw-r--r--src/routing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routing.h b/src/routing.h
index bbb4c24..a435a94 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -46,3 +46,6 @@ void routing_status(int* filled, int* size, double* load_factor, size_t load_fac
struct entry* routing_get(struct nodeid* id);
void routing_remove(struct nodeid* self);
+
+struct nodeid rand_nodeid_in_bucket(struct nodeid *self, struct nodeid *other);
+uint8_t prefix(struct nodeid* a, struct nodeid* b);