summaryrefslogtreecommitdiffstats
path: root/proto/static/static.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-09-24 02:21:52 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-09-24 02:24:34 +0200
commit4116db182d8d80d26902a8b33f82664bb5770066 (patch)
treecd8b81a9514c6c78af09f4c7d9e1a4ba2c3f1b8e /proto/static/static.h
parent4271f2b77ed3862a2356475dc18b0cf5c1086364 (diff)
downloadbird-4116db182d8d80d26902a8b33f82664bb5770066.tar
bird-4116db182d8d80d26902a8b33f82664bb5770066.zip
Implements static recursive routes.
Diffstat (limited to 'proto/static/static.h')
-rw-r--r--proto/static/static.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/static/static.h b/proto/static/static.h
index c91b9ce..775743c 100644
--- a/proto/static/static.h
+++ b/proto/static/static.h
@@ -13,7 +13,8 @@ struct static_config {
struct proto_config c;
list iface_routes; /* Routes to search on interface events */
list other_routes; /* Routes hooked to neighbor cache and reject routes */
- int check_link; /* Whether iface link state is used */
+ int check_link; /* Whether iface link state is used */
+ struct rtable_config *igp_table; /* Table used for recursive next hop lookups */
};
@@ -35,6 +36,9 @@ struct static_route {
/* Dummy nodes (parts of multipath route) abuses masklen field for weight
and if_name field for a ptr to the master (RTD_MULTIPATH) node. */
+
+#define RTDX_RECURSIVE 0x7f /* Phony dest value for recursive routes */
+
void static_show(struct proto *);
#endif