summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-09-13 10:39:13 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-09-13 10:39:22 -0400
commitbb74e5acbce20b36b147e6feabe60421951393a1 (patch)
treeeaf988897f37d4820bb59d3a14e9e08cf1ca4b52 /lib/command_match.c
parentfea0584841b2145d5b264e8cbde3631db8a382c2 (diff)
lib, doc: increase maximum cli tokens
When matching user input against a CLI graph, we keep a stack of tokens matched. Stack size was limited to 64, making the effective number of tokens that could be entered on a line 64. This is too limiting in some circumstances, so bump it to 256 (and document it). Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c2
1 files changed, 1 insertions, 1 deletions
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