summaryrefslogtreecommitdiff
path: root/nest/route.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-18 11:13:16 +0000
committerMartin Mares <mj@ucw.cz>1998-10-18 11:13:16 +0000
commit5b22683d2f27fcc5954cc9d4d58e55e539414d53 (patch)
tree028d2f41b2a4ab6c888f567619c4c4ca62ea50b3 /nest/route.h
parent570ce189d77fc40841e8e9f8f86ea3c3840aa450 (diff)
After contemplating about RIP route timeouts for a long time, I've implemented
protocol callbacks for route insertion and deletion from the central table. RIP should maintain its own per-protocol queue of existing routes, scan it periodically and call rte_discard() for routes that have timed out.
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h
index 1bd20b63..e50de07d 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -123,6 +123,7 @@ net *net_get(rtable *tab, unsigned tos, ip_addr addr, unsigned len);
rte *rte_find(net *net, struct proto *p);
rte *rte_get_temp(struct rtattr *);
void rte_update(net *net, struct proto *p, rte *new);
+void rte_discard(net *net, rte *old);
void rte_dump(net *, rte *);
void rt_dump(rtable *);
void rt_dump_all(void);