0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 15:41:54 +00:00

Send only global symbols

This commit is contained in:
Jan Maria Matejka 2017-12-14 14:50:51 +01:00
parent adf80eccc5
commit b76472c4ee

View File

@ -104,10 +104,13 @@ cmd_send_symbols(void)
cli_msg(RC_BIRD_VERSION_NUM, "%s", BIRD_VERSION); cli_msg(RC_BIRD_VERSION_NUM, "%s", BIRD_VERSION);
HASH_WALK(config->sym_hash, next, sym) HASH_WALK(config->sym_hash, next, sym)
{
if (!sym->scope->next) /* global scope */
{ {
code = get_cli_code_for_sym(sym); code = get_cli_code_for_sym(sym);
cli_msg(code, "%s", sym->name); cli_msg(code, "%s", sym->name);
} }
}
HASH_WALK_END; HASH_WALK_END;
struct iface *i; struct iface *i;