]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Send only global symbols
authorJan Maria Matejka <mq@ucw.cz>
Thu, 14 Dec 2017 13:50:51 +0000 (14:50 +0100)
committerJan Maria Matejka <mq@ucw.cz>
Thu, 14 Dec 2017 13:50:51 +0000 (14:50 +0100)
nest/cmds.c

index 47eeabf8bf584e97c4240e2b49758f98db5b00f6..f7cd6f1278bbdbcd04477640d9caf9e12fa48e5e 100644 (file)
@@ -105,8 +105,11 @@ cmd_send_symbols(void)
 
   HASH_WALK(config->sym_hash, next, sym)
   {
-    code = get_cli_code_for_sym(sym);
-    cli_msg(code, "%s", sym->name);
+    if (!sym->scope->next) /* global scope */
+      {
+       code = get_cli_code_for_sym(sym);
+       cli_msg(code, "%s", sym->name);
+      }
   }
   HASH_WALK_END;