summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@slashwin.dk>2021-06-20 20:39:46 +0200
committerJesper Jensen <jesper@slashwin.dk>2021-06-20 20:39:46 +0200
commitbc10650887822d214a178a16fe7948d0977aa81c (patch)
treeed9f8f3973e3bcdf9dba48a82fe9d45023f23173 /src/routing.h
parent23359fd5d5a89360b22e986c9bdbeb2c370a4bcb (diff)
Add tests for routing
Diffstat (limited to 'src/routing.h')
-rw-r--r--src/routing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routing.h b/src/routing.h
index dc40aa9..b0e9922 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -35,5 +35,6 @@ struct entry {
};
void routing_init(struct nodeid* myid);
+void routing_flush();
bool routing_offer(struct nodeid* id, struct entry **dest);
-size_t rounting_closest(struct nodeid* needle, size_t n, struct entry** res);
+size_t routing_closest(struct nodeid* needle, size_t n, struct entry** res);