summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Michel <francois.michel@uclouvain.be>2023-08-31 16:01:32 +0200
committerDavid Ahern <dsahern@kernel.org>2023-09-11 09:14:35 -0600
commitdd5b1f585bf627d4bf4375b0764baa6a6de9d9bb (patch)
tree401d877a9593310c7c3852c7f2bcd3a75482982b
parent3258a969e9a47bbde6a88363b93ab46c0fb7ff46 (diff)
tc: fix several typos in netem's usage string
Add missing brackets and surround brackets by single spaces in the netem usage string. Also state the P14 argument as optional. Signed-off-by: François Michel <francois.michel@uclouvain.be> Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: David Ahern <dsahern@kernel.org>
-rw-r--r--tc/q_netem.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tc/q_netem.c b/tc/q_netem.c
index 3be647ff..5d5aad80 100644
--- a/tc/q_netem.c
+++ b/tc/q_netem.c
@@ -24,20 +24,20 @@ static void explain(void)
{
fprintf(stderr,
"Usage: ... netem [ limit PACKETS ]\n"
- " [ delay TIME [ JITTER [CORRELATION]]]\n"
+ " [ delay TIME [ JITTER [ CORRELATION ] ] ]\n"
" [ distribution {uniform|normal|pareto|paretonormal} ]\n"
- " [ corrupt PERCENT [CORRELATION]]\n"
- " [ duplicate PERCENT [CORRELATION]]\n"
- " [ loss random PERCENT [CORRELATION]]\n"
- " [ loss state P13 [P31 [P32 [P23 P14]]]\n"
- " [ loss gemodel PERCENT [R [1-H [1-K]]]\n"
+ " [ corrupt PERCENT [ CORRELATION ] ]\n"
+ " [ duplicate PERCENT [ CORRELATION ] ]\n"
+ " [ loss random PERCENT [ CORRELATION ] ]\n"
+ " [ loss state P13 [ P31 [ P32 [ P23 [ P14 ] ] ] ] ]\n"
+ " [ loss gemodel PERCENT [ R [ 1-H [ 1-K ] ] ] ]\n"
" [ seed SEED ]\n"
" [ ecn ]\n"
- " [ reorder PERCENT [CORRELATION] [ gap DISTANCE ]]\n"
- " [ rate RATE [PACKETOVERHEAD] [CELLSIZE] [CELLOVERHEAD]]\n"
- " [ slot MIN_DELAY [MAX_DELAY] [packets MAX_PACKETS] [bytes MAX_BYTES]]\n"
+ " [ reorder PERCENT [ CORRELATION ] [ gap DISTANCE ] ]\n"
+ " [ rate RATE [ PACKETOVERHEAD ] [ CELLSIZE ] [ CELLOVERHEAD ] ]\n"
+ " [ slot MIN_DELAY [ MAX_DELAY ] [ packets MAX_PACKETS ] [ bytes MAX_BYTES ] ]\n"
" [ slot distribution {uniform|normal|pareto|paretonormal|custom}\n"
- " DELAY JITTER [packets MAX_PACKETS] [bytes MAX_BYTES]]\n");
+ " DELAY JITTER [ packets MAX_PACKETS ] [ bytes MAX_BYTES ] ]\n");
}
static void explain1(const char *arg)