summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-09-13 16:09:36 -0400
committerGitHub <noreply@github.com>2017-09-13 16:09:36 -0400
commit2fcd98bd138667de43d0b5a6a27ec449adc33a51 (patch)
treeb0d793fc0abe1d9aed57d066304f012ca506ecc6
parent323a4653ceaadb53f18c9700e124383d163546bd (diff)
parentbb74e5acbce20b36b147e6feabe60421951393a1 (diff)
Merge pull request #1171 from qlyoung/max-cli-tokens
lib, doc: increase maximum cli tokens
-rw-r--r--doc/cli.md3
-rw-r--r--lib/command_match.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/cli.md b/doc/cli.md
index ef867362c3..253617e9b5 100644
--- a/doc/cli.md
+++ b/doc/cli.md
@@ -75,6 +75,9 @@ Some general notes:
configuration items should be defined in separate commands. Clarity is
preferred over LOC (within reason).
+* The maximum number of space-separated tokens that can be entered is presently
+ limited to 256. Please keep this limit in mind when implementing new CLI.
+
Variable Names
--------------
The parser tries to fill the "varname" field on each token. This can happen
diff --git a/lib/command_match.c b/lib/command_match.c
index ad3ec2492e..62e7c63068 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -28,7 +28,7 @@
DEFINE_MTYPE_STATIC(LIB, CMD_MATCHSTACK, "Command Match Stack")
-#define MAXDEPTH 64
+#define MAXDEPTH 256
#ifdef TRACE_MATCHER
#define TM 1