summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-03-13 11:33:50 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2011-03-13 11:33:50 +0100
commit93e868c730dc0b1825b2a685e0b066c051b1cb07 (patch)
tree732a24861785cbefac966c365a762628bac9c0ac /nest
parent9d67ffb0b4cdfbbf88779ce2b44ba810d1ba85d3 (diff)
downloadbird-93e868c730dc0b1825b2a685e0b066c051b1cb07.tar
bird-93e868c730dc0b1825b2a685e0b066c051b1cb07.zip
Implements Router Advertisement protocol.
Diffstat (limited to 'nest')
-rw-r--r--nest/proto-hooks.c2
-rw-r--r--nest/proto.c3
-rw-r--r--nest/protocol.h2
3 files changed, 5 insertions, 2 deletions
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;
/*