When changing default table behavior, I missed that it enabled to
configure multiple master4 and master6 tables. Now BIRD recognizes it
and fails properly.
for (uint addr_type = 0; addr_type < NET_MAX; addr_type++)
if (s == new_config->def_tables[addr_type])
{
+ ASSERT_DIE(!s->table);
s->table = rt_new_table(s, addr_type);
return;
}
struct rtable_config *
rt_new_table(struct symbol *s, uint addr_type)
{
+ if (s->table)
+ cf_error("Duplicate configuration of table %s", s->name);
+
struct rtable_config *c = cfg_allocz(sizeof(struct rtable_config));
if (s == new_config->def_tables[addr_type])