diff options
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 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 |