]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Allows to redefine master table.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 20 Jul 2012 17:56:57 +0000 (19:56 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 20 Jul 2012 17:56:57 +0000 (19:56 +0200)
nest/rt-table.c

index 165f42bb81ecbceeed31d09060ba4ae5ff18d67c..118f4c25b710d40d0252d35ea49343941e32e401 100644 (file)
@@ -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);