diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-07-20 19:56:57 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-07-20 19:56:57 +0200 |
commit | 36415e4b1dd769458cced44525ee74d26d15f9c6 (patch) | |
tree | 4ea17280f26ef80654bf315363c2f9b4c7c409dc /nest/rt-table.c | |
parent | c4b76d7b19cf48ddbcbe913c22ef7f1e8429f5ea (diff) |
Allows to redefine master table.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 165f42bb..118f4c25 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1386,6 +1386,10 @@ rt_next_hop_update(rtable *tab) struct rtable_config * rt_new_table(struct symbol *s) { + /* Hack that allows to 'redefine' the master table */ + if ((s->class == SYM_TABLE) && (s->def == new_config->master_rtc)) + return s->def; + struct rtable_config *c = cfg_allocz(sizeof(struct rtable_config)); cf_define_symbol(s, SYM_TABLE, c); |