diff options
author | Maria Matejka <mq@ucw.cz> | 2023-06-13 10:51:03 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-09-12 15:36:46 +0200 |
commit | 51f2e7afaf069508685281e8c1b8bb1ceda79d8f (patch) | |
tree | 1e6c2fbb1bfa49b543033193adca354c04247e21 /nest/rt-table.c | |
parent | 5951dfbd5ed21d973e7627740c069d6612d7b899 (diff) |
Conf: Symbol manipulation gets its context explicitly
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 23c4bbb2..742e2f05 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2409,8 +2409,8 @@ rt_preconfig(struct config *c) { init_list(&c->tables); - rt_new_table(cf_get_symbol("master4"), NET_IP4); - rt_new_table(cf_get_symbol("master6"), NET_IP6); + rt_new_table(cf_get_symbol(c, "master4"), NET_IP4); + rt_new_table(cf_get_symbol(c, "master6"), NET_IP6); } void @@ -2838,7 +2838,7 @@ rt_new_table(struct symbol *s, uint addr_type) struct rtable_config *c = cfg_allocz(sizeof(struct rtable_config)); - cf_define_symbol(s, SYM_TABLE, table, c); + cf_define_symbol(new_config, s, SYM_TABLE, table, c); c->name = s->name; c->addr_type = addr_type; c->gc_threshold = 1000; |