diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 17:48:08 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 17:48:08 +0100 |
commit | 99667bd3f0c4129897e53ae33b4664ca54fd4ecc (patch) | |
tree | 7922266f3e34a9d2283d1b2ae62ba96057fae7a2 /nest/cmds.c | |
parent | a46594d84eff30217d0da5424dfc4bcddb49bc54 (diff) | |
parent | 8e177cf35b582ec973c1abce4709c80847adb711 (diff) |
Merge commit '8e177cf35b582ec973c1abce4709c80847adb711' into wireguard-next-tmp7-1
Diffstat (limited to 'nest/cmds.c')
-rw-r--r-- | nest/cmds.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/nest/cmds.c b/nest/cmds.c index bcc8d6c2..d49bbc53 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, ""); } |