From: François Michel Date: Thu, 31 Aug 2023 14:01:32 +0000 (+0200) Subject: tc: fix several typos in netem's usage string X-Git-Tag: v6.6.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd5b1f585bf627d4bf4375b0764baa6a6de9d9bb;p=thirdparty%2Fiproute2.git 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 Reviewed-by: Donald Hunter Reviewed-by: Petr Machata Signed-off-by: David Ahern --- diff --git a/tc/q_netem.c b/tc/q_netem.c index 3be647ffe..5d5aad808 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)