From 2638249d34cc7f600fba25edd29538c00a3aca31 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 19 Mar 2000 22:09:07 +0000 Subject: Bare skeleton of the BGP. --- nest/proto.c | 3 +++ nest/protocol.h | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'nest') diff --git a/nest/proto.c b/nest/proto.c index 937cda2..95988ce 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -366,6 +366,9 @@ protos_build(void) #endif #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); 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 -- cgit v1.2.3