diff --git a/README.md b/README.md index edea658..664211f 100644 --- a/README.md +++ b/README.md @@ -313,8 +313,10 @@ The following CLI arguments are supported. | --min-len | `--min-len 42` | The packet's mimimum length to match with the dynamic filter. | | --max-len | `--max-len 96` | The packet's maximum length to match with the dynamic filter. | | --tos | `--tos 1` | The IP's Type of Service to match with the dynamic filter. | -| --pps | `--pps 10000` | The minimum PPS rate to match with the dynamic filter. | -| --bps | `--bps 126000` | The minimum BPS rate to match with the dynamic filter. | +| --ip-pps | `--ip-pps 10000` | The minimum PPS rate of a source IP to match with the dynamic filter. | +| --ip-bps | `--ip-bps 126000` | The minimum BPS rate of a source IP to match with the dynamic filter. | +| --flow-pps | `--flow-pps 3000` | The minimum PPS rate of a source flow to match with the dynamic filter. | +| --flow-bps | `--flow-bps 26000` | The minimum BPS rate of a source flow to match with the dynamic filter. | | --tcp | `--tcp 1` | Enables or disables TCP matching with the dynamic filter. | | --tsport | `--tsport 22` | The TCP source port to match with the dynamic filter. | | --tdport | `--tdport 443` | The TCP destination port to match with the dynamic filter. | diff --git a/src/rule_add/utils/cli.c b/src/rule_add/utils/cli.c index cd168a4..6a4db1c 100644 --- a/src/rule_add/utils/cli.c +++ b/src/rule_add/utils/cli.c @@ -33,8 +33,8 @@ const struct option opts[] = { "ip-pps", required_argument, NULL, 9 }, { "ip-bps", required_argument, NULL, 10 }, - { "ip-pps", required_argument, NULL, 32 }, - { "ip-bps", required_argument, NULL, 33 }, + { "flow-pps", required_argument, NULL, 32 }, + { "flow-bps", required_argument, NULL, 33 }, { "tcp", required_argument, NULL, 11 }, { "tsport", required_argument, NULL, 12 },