[PATCH] app/dumpcap: allow help/version without primary process
Ben Magistro
koncept1 at gmail.com
Tue Jan 25 04:25:45 CET 2022
Currently dumpcap tries to initialize dpdk before parsing command line
arguments, this makes it impossible to check version or help without
having the primary process running already.
Signed-off-by: Ben Magistro <koncept1 at gmail.com>
---
app/dumpcap/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c
index c5fe440302..1cc7e80d5d 100644
--- a/app/dumpcap/main.c
+++ b/app/dumpcap/main.c
@@ -781,8 +781,8 @@ int main(int argc, char **argv)
progname = argv[0];
- dpdk_init();
parse_opts(argc, argv);
+ dpdk_init();
if (filter_str)
compile_filter();
--
2.27.0
More information about the dev
mailing list