From 36415e4b1dd769458cced44525ee74d26d15f9c6 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 20 Jul 2012 19:56:57 +0200 Subject: [PATCH] Allows to redefine master table. --- nest/rt-table.c | 4 ++++ 1 file changed, 4 insertions(+) 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);