summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-01-10 01:26:11 +0100
committerMartin Mares <mj@ucw.cz>1999-01-10 01:26:11 +0100
commit18fff6a1979725c1ed839d9a10285e22dc0b8214 (patch)
treea139d5663761b52a728093a05e2ce60a56bfade3 /nest/proto.c
parentb296730cb6b72ff84ba04fa58a6c7198f3a831e0 (diff)
downloadbird-18fff6a1979725c1ed839d9a10285e22dc0b8214.tar
bird-18fff6a1979725c1ed839d9a10285e22dc0b8214.zip
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 cb9b844..cb3113f 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