From 87d2be86e5f8af0e2f01e7fb711bd282e29e376b Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 9 Jul 1998 19:36:52 +0000 Subject: Adding proto_dump_all() function --- nest/proto.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index f0c4fc63..478eb77b 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -76,6 +76,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) { @@ -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); } -- cgit v1.2.3