From 7de45ba4a01bfdc986a4b597c04ad39d9b97a58a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Aug 1999 19:33:22 +0000 Subject: Kernel route syncer supports multiple tables. The changes are just too extensive for lazy me to list them there, but see the comment at the top of sysdep/unix/krt.c. The code got a bit more ifdeffy than I'd like, though. Also fixed a bunch of FIXME's and added a couple of others. :) --- sysdep/unix/krt.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'sysdep/unix/krt.h') diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index 3cc922c..85b884a 100644 --- a/sysdep/unix/krt.h +++ b/sysdep/unix/krt.h @@ -9,6 +9,7 @@ #ifndef _BIRD_KRT_H_ #define _BIRD_KRT_H_ +struct config; struct krt_config; struct krt_proto; struct kif_config; @@ -55,10 +56,16 @@ struct krt_proto { struct krt_if_status iface; #ifdef KRT_ALLOW_LEARN struct rtable krt_table; /* Internal table of inherited routes */ +#endif + pool *krt_pool; /* Pool used for common krt data */ + timer *scan_timer; +#ifdef CONFIG_ALL_TABLES_AT_ONCE + node instance_node; /* Node in krt instance list */ #endif }; extern struct proto_config *cf_krt; +extern pool *krt_pool; #define KRT_CF ((struct krt_config *)p->p.cf) @@ -90,24 +97,26 @@ extern struct proto_config *cf_kif; /* krt-scan.c */ -void krt_scan_preconfig(struct krt_config *); -void krt_scan_start(struct krt_proto *); -void krt_scan_shutdown(struct krt_proto *); +void krt_scan_preconfig(struct config *); +void krt_scan_postconfig(struct krt_config *); +void krt_scan_construct(struct krt_config *); +void krt_scan_start(struct krt_proto *, int); +void krt_scan_shutdown(struct krt_proto *, int); void krt_scan_fire(struct krt_proto *); /* krt-set.c */ -void krt_set_preconfig(struct krt_config *); -void krt_set_start(struct krt_proto *); -void krt_set_shutdown(struct krt_proto *); +void krt_set_construct(struct krt_config *); +void krt_set_start(struct krt_proto *, int); +void krt_set_shutdown(struct krt_proto *, int); int krt_capable(rte *e); void krt_set_notify(struct krt_proto *x, net *net, rte *new, rte *old); /* krt-iface.c */ -void krt_if_preconfig(struct kif_config *); +void krt_if_construct(struct kif_config *); void krt_if_start(struct kif_proto *); void krt_if_shutdown(struct kif_proto *); -- cgit v1.2.3