aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-08-04 10:47:44 +0000
committerDamjan Marion <damarion@cisco.com>2023-08-04 10:52:07 +0000
commitfaeadca89eafef21bb40bdd7e12100d0712e0b7d (patch)
tree356a7690ecc7997c74183dac8b56803c53c48df2 /src
parent91ff0e965a442122d31fc1f52f03d0622ac564d0 (diff)
vpp: detect early nosyslog and interactive flags
So error logs are displayed on console earlier.... Type: improvement Change-Id: If31b76c9d06254b0fec5b5b3f4e92a881b4cf786 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/vnet/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c
index 9a4bed6a6ea..be34228f01d 100644
--- a/src/vpp/vnet/main.c
+++ b/src/vpp/vnet/main.c
@@ -269,6 +269,10 @@ main (int argc, char *argv[])
main_core = x;
}
}
+ else if (!strncmp (argv[i], "interactive", 11))
+ unix_main.flags |= UNIX_FLAG_INTERACTIVE;
+ else if (!strncmp (argv[i], "nosyslog", 8))
+ unix_main.flags |= UNIX_FLAG_NOSYSLOG;
}
defaulted: