summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-30 16:53:18 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-30 16:53:18 +0200
commitc1645b9d5bef3d08ef91ac21197a4860a490bfd4 (patch)
treeb06a954117ae48dd710650b76892f651892e9b7f /nest
parent8b4b7c6eaefff43508179b05acbc061fa6b19291 (diff)
parent165156beeb2926472bbceca3c103aacc3f81a8cc (diff)
Merge commit '165156beeb2926472bbceca3c103aacc3f81a8cc' into haugesund
Diffstat (limited to 'nest')
-rw-r--r--nest/cmds.c23
-rw-r--r--nest/config.Y2
2 files changed, 13 insertions, 12 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index 99a7bbfe..092be48a 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -51,17 +51,18 @@ cmd_show_symbols(struct sym_show_data *sd)
cli_msg(1010, "%-8s\t%s", sd->sym->name, cf_symbol_class_name(sd->sym));
else
{
- HASH_WALK(config->sym_hash, next, sym)
- {
- if (!sym->scope->active)
- continue;
-
- if (sd->type && (sym->class != sd->type))
- continue;
-
- cli_msg(-1010, "%-8s\t%s", sym->name, cf_symbol_class_name(sym));
- }
- HASH_WALK_END;
+ for (const struct sym_scope *scope = config->root_scope; scope; scope = scope->next)
+ HASH_WALK(scope->hash, next, sym)
+ {
+ if (!sym->scope->active)
+ continue;
+
+ if (sd->type && (sym->class != sd->type))
+ continue;
+
+ cli_msg(-1010, "%-8s\t%s", sym->name, cf_symbol_class_name(sym));
+ }
+ HASH_WALK_END;
cli_msg(0, "");
}
diff --git a/nest/config.Y b/nest/config.Y
index 3152aec2..1e3fb832 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -639,7 +639,7 @@ r_args:
$$ = cfg_allocz(sizeof(struct rt_show_data));
init_list(&($$->tables));
$$->filter = FILTER_ACCEPT;
- $$->running_on_config = new_config->fallback;
+ $$->running_on_config = config;
}
| r_args net_any {
$$ = $1;