summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-18 13:53:21 +0200
committerMartin Mares <mj@ucw.cz>1998-10-18 13:53:21 +0200
commit0432c0173bb4d234e8ba8e4afea0a8e708e119d8 (patch)
tree52a7c25de9102f8da2693f9daa9278b172086fb0 /nest/proto.c
parent05e56feb57b8e313a2328dbe82e2c2a70ff5115a (diff)
downloadbird-0432c0173bb4d234e8ba8e4afea0a8e708e119d8.tar
bird-0432c0173bb4d234e8ba8e4afea0a8e708e119d8.zip
Split protocol init to building of protocol list and real protocol init.
Added kernel route table syncer skeleton.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 6db5a0e..6c0843d 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -107,14 +107,19 @@ protos_dump_all(void)
}
void
+protos_build(void)
+{
+ init_list(&protocol_list);
+ add_tail(&protocol_list, &proto_device.n);
+ add_tail(&protocol_list, &proto_rip.n);
+}
+
+void
protos_init(void)
{
struct protocol *p;
debug("Initializing protocols\n");
- init_list(&protocol_list);
- add_tail(&protocol_list, &proto_device.n);
- add_tail(&protocol_list, &proto_rip.n); /* HACK: We should really read this from config */
WALK_LIST(p, protocol_list)
p->init(p);
}