diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-03-30 13:29:34 +0200 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-04-12 16:04:22 +0200 |
commit | ffb38dfb8b454dc23cd08836d7236a5a9c9f80c1 (patch) | |
tree | 320b828347d5aee9fc36227ca2e456494d74cac3 /proto/static/static.h | |
parent | 2faf519cf9d34f90d59081ee5f8d6976c62f4f6e (diff) |
Static: Support for dual-AF IGP tables
When recursive routes with hybrid next hops (e.g. IPv6 route with IPv4 next
hop) are allowed, we need both IPv4 and IPv6 IGP tables.
Diffstat (limited to 'proto/static/static.h')
-rw-r--r-- | proto/static/static.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/static/static.h b/proto/static/static.h index 0976a9c9..c84dfa98 100644 --- a/proto/static/static.h +++ b/proto/static/static.h @@ -17,7 +17,8 @@ struct static_config { struct proto_config c; list routes; /* List of static routes (struct static_route) */ int check_link; /* Whether iface link state is used */ - struct rtable_config *igp_table; /* Table used for recursive next hop lookups */ + struct rtable_config *igp_table_ip4; /* Table for recursive IPv4 next hop lookups */ + struct rtable_config *igp_table_ip6; /* Table for recursive IPv6 next hop lookups */ }; struct static_proto { @@ -25,6 +26,8 @@ struct static_proto { struct event *event; /* Event for announcing updated routes */ BUFFER(struct static_route *) marked; /* Routes marked for reannouncement */ + rtable *igp_table_ip4; /* Table for recursive IPv4 next hop lookups */ + rtable *igp_table_ip6; /* Table for recursive IPv6 next hop lookups */ }; struct static_route { |