From: Ondrej Zajicek Date: Fri, 20 Jul 2012 17:56:57 +0000 (+0200) Subject: Allows to redefine master table. X-Git-Tag: v1.3.8^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36415e4b1dd769458cced44525ee74d26d15f9c6;p=thirdparty%2Fbird.git Allows to redefine master table. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 165f42bb8..118f4c25b 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);