summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-19 23:09:07 +0100
committerMartin Mares <mj@ucw.cz>2000-03-19 23:09:07 +0100
commit2638249d34cc7f600fba25edd29538c00a3aca31 (patch)
tree206aeb113f3822d08385cae49e9b5e1bbe6796fb /nest
parent349e21bb0bb7584fb18c19859d876893c3130947 (diff)
downloadbird-2638249d34cc7f600fba25edd29538c00a3aca31.tar
bird-2638249d34cc7f600fba25edd29538c00a3aca31.zip
Bare skeleton of the BGP.
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c3
-rw-r--r--nest/protocol.h8
2 files changed, 6 insertions, 5 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 937cda2..95988ce 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -367,6 +367,9 @@ protos_build(void)
#ifdef CONFIG_PIPE
add_tail(&protocol_list, &proto_pipe.n);
#endif
+#ifdef CONFIG_BGP
+ add_tail(&protocol_list, &proto_bgp.n);
+#endif
proto_pool = rp_new(&root_pool, "Protocols");
proto_flush_event = ev_new(proto_pool);
proto_flush_event->hook = proto_flush_all;
diff --git a/nest/protocol.h b/nest/protocol.h
index 9dd32fc..b02ea02 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -61,11 +61,9 @@ extern list protocol_list;
* Known protocols
*/
-extern struct protocol proto_device;
-extern struct protocol proto_rip;
-extern struct protocol proto_static;
-extern struct protocol proto_ospf;
-extern struct protocol proto_pipe;
+extern struct protocol
+ proto_device, proto_rip, proto_static,
+ proto_ospf, proto_pipe, proto_bgp;
/*
* Routing Protocol Instance