[iproute2 2/3] police: improve usage message
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2016-08-28 12:59:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Roman Mashak <redacted> Signed-off-by: Roman Mashak <redacted> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> --- tc/m_police.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tc/m_police.c b/tc/m_police.c
index d7fa8f6..226e20e 100644
--- a/tc/m_police.c
+++ b/tc/m_police.c@@ -36,11 +36,12 @@ static void usage(void) { fprintf(stderr, "Usage: ... police rate BPS burst BYTES[/BYTES] [ mtu BYTES[/BYTES] ]\n"); fprintf(stderr, " [ peakrate BPS ] [ avrate BPS ] [ overhead BYTES ]\n"); - fprintf(stderr, " [ linklayer TYPE ] [ ACTIONTERM ]\n"); + fprintf(stderr, " [ linklayer TYPE ] [ CONTROL ]\n"); - fprintf(stderr, "New Syntax ACTIONTERM := conform-exceed <EXCEEDACT>[/NOTEXCEEDACT]\n"); - fprintf(stderr, "Where: *EXCEEDACT := pipe | ok | reclassify | drop | continue\n"); - fprintf(stderr, "Where: pipe is only valid for new syntax\n"); + fprintf(stderr, "Where: CONTROL := conform-exceed <EXCEEDACT>[/NOTEXCEEDACT]\n"); + fprintf(stderr, " Define how to handle packets which exceed (<EXCEEDACT>)\n"); + fprintf(stderr, " or conform (<NOTEXCEEDACT>) the configured bandwidth limit.\n"); + fprintf(stderr, " EXCEEDACT/NOTEXCEEDACT := { pipe | ok | reclassify | drop | continue }\n"); exit(-1); }
--
1.9.1