summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-07-09 21:36:52 +0200
committerPavel Machek <pavel@ucw.cz>1998-07-09 21:36:52 +0200
commit87d2be86e5f8af0e2f01e7fb711bd282e29e376b (patch)
tree6c0a825535ad590d82282bda6969883838d90702 /nest/proto.c
parentcf3527e2f4f1f4009fa332e6284b8904c24d0d43 (diff)
downloadbird-87d2be86e5f8af0e2f01e7fb711bd282e29e376b.tar
bird-87d2be86e5f8af0e2f01e7fb711bd282e29e376b.zip
Adding proto_dump_all() function
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index f0c4fc6..478eb77 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -77,6 +77,21 @@ protos_start(void)
}
void
+protos_dump_all(void)
+{
+ struct proto *p;
+
+ debug("Protocols:\n");
+
+ WALK_LIST(p, proto_list)
+ {
+ debug(" protocol %s:\n", p->name);
+ if (p->dump)
+ p->dump(p);
+ }
+}
+
+void
protos_init(void)
{
struct protocol *p;
@@ -84,6 +99,7 @@ protos_init(void)
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);
}