summaryrefslogtreecommitdiffstats
path: root/nest/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-30 00:10:18 +0200
committerMartin Mares <mj@ucw.cz>2000-05-30 00:10:18 +0200
commit4761efdb43aa128fa0326963d88debe8fb942c84 (patch)
tree483e33ce446335643fc4f83148a386df87b47e4d /nest/config.Y
parent26eee1c33ac90ccbc5753afac06d34980fade2b8 (diff)
downloadbird-4761efdb43aa128fa0326963d88debe8fb942c84.tar
bird-4761efdb43aa128fa0326963d88debe8fb942c84.zip
Tracing of CLI connections/commands can be now controlled
by `debug commands <level>' in the configuration. Level 0 means no tracing, 1 means connections only, 2 includes all commands.
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y3
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/config.Y b/nest/config.Y
index e2668f5..2918d25 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -22,7 +22,7 @@ CF_DECLS
CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT)
CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS)
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES)
-CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR)
+CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS)
CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT,
RIP, OSPF, OSPF_EXT, OSPF_IA, OSPF_BOUNDARY, BGP, PIPE)
@@ -118,6 +118,7 @@ CF_ADDTO(conf, debug_default)
debug_default:
DEBUG PROTOCOLS debug_mask { new_config->proto_default_debug = $3; }
+ | DEBUG COMMANDS expr { new_config->cli_debug = $3; }
;
/* Interface patterns */