diff options
author | Martin Mares <mj@ucw.cz> | 2000-03-19 22:09:07 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-03-19 22:09:07 +0000 |
commit | 2638249d34cc7f600fba25edd29538c00a3aca31 (patch) | |
tree | 206aeb113f3822d08385cae49e9b5e1bbe6796fb /nest | |
parent | 349e21bb0bb7584fb18c19859d876893c3130947 (diff) |
Bare skeleton of the BGP.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/proto.c | 3 | ||||
-rw-r--r-- | nest/protocol.h | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/nest/proto.c b/nest/proto.c index 937cda2d..95988ce5 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 9dd32fc4..b02ea022 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 |