Skip to content

Commit

Permalink
PcapSplitter: Fix typos (avoid mixing split-param and split_param) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fxlb authored Oct 23, 2024
1 parent d3adb80 commit 2055290
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions Examples/PcapSplitter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ Using the utility
'round-robin' - split the file in a round-robin manner - each packet to a
different file

-p split-param : The relevant parameter for the split method:
'method = file-size' => split-param is the max size per file (in bytes).
split-param is required for this method
'method = packet-count' => split-param is the number of packet per file.
split-param is required for this method
'method = client-ip' => split-param is max number of files to open.
-p split_param : The relevant parameter for the split method:
'method = file-size' => split_param is the max size per file (in bytes).
split_param is required for this method
'method = packet-count' => split_param is the number of packet per file.
split_param is required for this method
'method = client-ip' => split_param is max number of files to open.
If not provided the default is unlimited number of files
'method = server-ip' => split-param is max number of files to open.
'method = server-ip' => split_param is max number of files to open.
If not provided the default is unlimited number of files
'method = server-port' => split-param is max number of files to open.
'method = server-port' => split_param is max number of files to open.
If not provided the default is unlimited number of files
'method = ip-src-dst' => split-param is max number of files to open.
'method = ip-src-dst' => split_param is max number of files to open.
If not provided the default is unlimited number of files
'method = connection' => split-param is max number of files to open.
'method = connection' => split_param is max number of files to open.
If not provided the default is unlimited number of files
'method = bpf-filter' => split-param is the BPF filter to match upon
'method = round-robin' => split-param is number of files to round-robin packets between
'method = bpf-filter' => split_param is the BPF filter to match upon
'method = round-robin' => split_param is number of files to round-robin packets between
-i filter : Apply a BPF filter, meaning only filtered packets will be counted in the split
-h : Displays this help message and exits);
24 changes: 12 additions & 12 deletions Examples/PcapSplitter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,29 +136,29 @@ void printUsage()
<< " 'round-robin' - split the file in a round-robin manner - each packet to a"
<< std::endl
<< " different file" << std::endl
<< " -p split-param : The relevant parameter for the split method:" << std::endl
<< " 'method = file-size' => split-param is the max size per file (in bytes)."
<< " -p split_param : The relevant parameter for the split method:" << std::endl
<< " 'method = file-size' => split_param is the max size per file (in bytes)."
<< std::endl
<< " split-param is required for this method" << std::endl
<< " 'method = packet-count' => split-param is the number of packet per file." << std::endl
<< " split-param is required for this method" << std::endl
<< " 'method = client-ip' => split-param is max number of files to open." << std::endl
<< " split_param is required for this method" << std::endl
<< " 'method = packet-count' => split_param is the number of packet per file." << std::endl
<< " split_param is required for this method" << std::endl
<< " 'method = client-ip' => split_param is max number of files to open." << std::endl
<< " If not provided the default is unlimited number of files"
<< std::endl
<< " 'method = server-ip' => split-param is max number of files to open." << std::endl
<< " 'method = server-ip' => split_param is max number of files to open." << std::endl
<< " If not provided the default is unlimited number of files"
<< std::endl
<< " 'method = server-port' => split-param is max number of files to open." << std::endl
<< " 'method = server-port' => split_param is max number of files to open." << std::endl
<< " If not provided the default is unlimited number of files"
<< std::endl
<< " 'method = ip-src-dst' => split-param is max number of files to open." << std::endl
<< " 'method = ip-src-dst' => split_param is max number of files to open." << std::endl
<< " If not provided the default is unlimited number of files"
<< std::endl
<< " 'method = connection' => split-param is max number of files to open." << std::endl
<< " 'method = connection' => split_param is max number of files to open." << std::endl
<< " If not provided the default is unlimited number of files"
<< std::endl
<< " 'method = bpf-filter' => split-param is the BPF filter to match upon" << std::endl
<< " 'method = round-robin' => split-param is number of files to round-robin packets "
<< " 'method = bpf-filter' => split_param is the BPF filter to match upon" << std::endl
<< " 'method = round-robin' => split_param is number of files to round-robin packets "
"between"
<< std::endl
<< " -i filter : Apply a BPF filter, meaning only filtered packets will be counted in the split"
Expand Down

0 comments on commit 2055290

Please sign in to comment.