Skip to content

Commit

Permalink
fix: missing -W option in nfpcapd argparsing
Browse files Browse the repository at this point in the history
  • Loading branch information
longregen authored Aug 17, 2024
1 parent 1fc74f0 commit 84c71a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nfpcapd/nfpcapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 84c71a6

Please sign in to comment.