summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorVladimir Isaev <visaev@netgate.com>2020-08-11 17:15:58 +0300
committerMatthew Smith <mgsmith@netgate.com>2020-08-31 20:43:34 +0000
commitb59095f830fbacbe2631dbbaa92f8e9606184015 (patch)
treeacf6c6090ae37a2536b3981b77a4c0f27544e9eb /src/vlib
parent90d05bc7fb834b5cf25bdd9bb6d92bb35e602494 (diff)
vlib: extend telnet protocol guard
There is a number of TERMs with big length, such as 'screen.konsole-256color' (23). These TERMs can not be processed properly by vpp because maximum telnet byte stream supported is 24 and we need 6 more service bytes to send TTYPE. So I extended maximum depth guard to 32. Type: fix Signed-off-by: Vladimir Isaev <visaev@netgate.com> Change-Id: I9ca506996a97e9567d06483c5f020d6cc394329c
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/unix/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c
index 5979dbdbd6a..e98eb3459fd 100644
--- a/src/vlib/unix/cli.c
+++ b/src/vlib/unix/cli.c
@@ -92,7 +92,7 @@
/** Maximum depth into a byte stream from which to compile a Telnet
* protocol message. This is a safety measure. */
-#define UNIX_CLI_MAX_DEPTH_TELNET 24
+#define UNIX_CLI_MAX_DEPTH_TELNET 32
/** Maximum terminal width we will accept */
#define UNIX_CLI_MAX_TERMINAL_WIDTH 512