summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/routing.h')
-rw-r--r--src/routing.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routing.h b/src/routing.h
index f4164fe..bbb4c24 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -27,10 +27,15 @@ struct nodeid {
struct entry {
bool set;
struct nodeid id;
- time_t expire;
struct addr addr;
+
+ time_t expire;
};
+extern struct nodeid myID;
+extern struct entry table[];
+extern int table_size;
+
void routing_init(struct nodeid* myid);
void routing_flush();
bool routing_interested(struct nodeid* id);