From 93e868c730dc0b1825b2a685e0b066c051b1cb07 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 13 Mar 2011 11:33:50 +0100 Subject: Implements Router Advertisement protocol. --- nest/proto-hooks.c | 2 +- nest/proto.c | 3 +++ nest/protocol.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/proto-hooks.c b/nest/proto-hooks.c index 3d19e3f..f026192 100644 --- a/nest/proto-hooks.c +++ b/nest/proto-hooks.c @@ -261,7 +261,7 @@ void store_tmp_attrs(rte *e, ea_list *attrs) * The standard use of this hook is to reject routes having originated * from the same instance and to set default values of the protocol's metrics. * - * Result: -1 if the route has to be accepted, 1 if rejected and 0 if it + * Result: 1 if the route has to be accepted, -1 if rejected and 0 if it * should be passed to the filters. */ int import_control(struct proto *p, rte **e, ea_list **attrs, struct linpool *pool) diff --git a/nest/proto.c b/nest/proto.c index 16ec3f9..d6d5d77 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -546,6 +546,9 @@ protos_build(void) init_list(&initial_proto_list); init_list(&flush_proto_list); proto_build(&proto_device); +#ifdef CONFIG_RADV + proto_build(&proto_radv); +#endif #ifdef CONFIG_RIP proto_build(&proto_rip); #endif diff --git a/nest/protocol.h b/nest/protocol.h index 70999f0..f95905a 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -71,7 +71,7 @@ void protos_dump_all(void); */ extern struct protocol - proto_device, proto_rip, proto_static, + proto_device, proto_radv, proto_rip, proto_static, proto_ospf, proto_pipe, proto_bgp; /* -- cgit v1.2.3