summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-01-10 00:26:11 +0000
committerMartin Mares <mj@ucw.cz>1999-01-10 00:26:11 +0000
commit18fff6a1979725c1ed839d9a10285e22dc0b8214 (patch)
treea139d5663761b52a728093a05e2ce60a56bfade3 /nest/proto.c
parentb296730cb6b72ff84ba04fa58a6c7198f3a831e0 (diff)
Initialize only protocols which are compiled in :)
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index cb9b8440..cb3113fd 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -118,7 +118,12 @@ protos_build(void)
{
init_list(&protocol_list);
add_tail(&protocol_list, &proto_device.n);
+#ifdef CONFIG_RIP
add_tail(&protocol_list, &proto_rip.n);
+#endif
+#ifdef CONFIG_STATIC
+ add_tail(&protocol_list, &proto_static.n);
+#endif
}
void