From 84c71a68b0e7375866d2d76168b1533d1af64344 Mon Sep 17 00:00:00 2001 From: lon <114724657+longregen@users.noreply.github.com> Date: Sat, 17 Aug 2024 23:34:02 +0200 Subject: [PATCH] fix: missing -W option in nfpcapd argparsing --- src/nfpcapd/nfpcapd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nfpcapd/nfpcapd.c b/src/nfpcapd/nfpcapd.c index 0ee7c467..f052ef58 100755 --- a/src/nfpcapd/nfpcapd.c +++ b/src/nfpcapd/nfpcapd.c @@ -146,6 +146,7 @@ static void usage(char *name) { "-I Ident\tset the ident string for stat file. (default 'none')\n" "-P pidfile\tset the PID file\n" "-t time frame\tset the time window to rotate pcap/nfcapd file\n" + "-W workers\toptionally set the number of workers to compress flows\n" "-z=lzo\t\tLZO compress flows in output file.\n" "-z=bz2\t\tBZIP2 compress flows in output file.\n" "-z=lz4[:level]\tLZ4 compress flows in output file.\n" @@ -321,7 +322,7 @@ int main(int argc, char *argv[]) { inactiveTimeout = 0; workers = 0; - while ((c = getopt(argc, argv, "b:B:C:dDe:g:hH:I:i:j:l:m:o:p:P:r:s:S:T:t:u:vVw:yz::")) != EOF) { + while ((c = getopt(argc, argv, "b:B:C:dDe:g:hH:I:i:j:l:m:o:p:P:r:s:S:T:t:u:vVw:W:yz::")) != EOF) { switch (c) { struct stat fstat; case 'h':