summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-11-28 10:07:44 +0200
committerGitHub <noreply@github.com>2022-11-28 10:07:44 +0200
commit39fc44d51a43a92581ab7874ba49b8b7c604790c (patch)
treed8237c334a45e1536fc9d9f408202e1facc04435 /lib/vty.c
parent1ad9201f08dfd583793155a999c06d9abc32c143 (diff)
parenta8a0f80b634208c878e15335948810e1d532d1e7 (diff)
Merge pull request #12403 from donaldsharp/echo_exclusion
Echo exclusion
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 5fe8d82473..352080e580 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -447,7 +447,8 @@ static int vty_command(struct vty *vty, char *buf)
/*
* Log non empty command lines
*/
- if (do_log_commands)
+ if (do_log_commands &&
+ strncmp(buf, "echo PING", strlen("echo PING")) != 0)
cp = buf;
if (cp != NULL) {
/* Skip white spaces. */