From: Roman Mashak <mrv@mojatatu.com>
To: stephen@networkplumber.org
Cc: netdev@vger.kernel.org, jhs@mojatatu.com,
Roman Mashak <mrv@mojatatu.com>
Subject: [PATCH iproute2 1/1] tc: improved usage help for fw classifier.
Date: Thu, 10 Nov 2016 11:02:57 -0500 [thread overview]
Message-ID: <1478793777-8979-1-git-send-email-mrv@mojatatu.com> (raw)
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
---
tc/f_fw.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/tc/f_fw.c b/tc/f_fw.c
index 29c9854..790bef9 100644
--- a/tc/f_fw.c
+++ b/tc/f_fw.c
@@ -25,10 +25,19 @@
static void explain(void)
{
- fprintf(stderr, "Usage: ... fw [ classid CLASSID ] [ action ACTION_SPEC ]\n");
- fprintf(stderr, " ACTION_SPEC := ... look at individual actions\n");
- fprintf(stderr, " CLASSID := X:Y\n");
- fprintf(stderr, "\nNOTE: CLASSID is parsed as hexadecimal input.\n");
+ fprintf(stderr,
+ "Usage: ... fw [ classid CLASSID ] [ indev DEV ] [ action ACTION_SPEC ]\n");
+ fprintf(stderr,
+ " CLASSID := Push matching packets to the class identified by CLASSID with format X:Y\n");
+ fprintf(stderr,
+ " CLASSID is parsed as hexadecimal input.\n");
+ fprintf(stderr,
+ " DEV := specify device for incoming device classification.\n");
+ fprintf(stderr,
+ " ACTION_SPEC := Apply an action on matching packets.\n");
+ fprintf(stderr,
+ " NOTE: handle is represented as HANDLE[/FWMASK].\n");
+ fprintf(stderr, " FWMASK is 0xffffffff by default.\n");
}
static int fw_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n)
--
1.9.1
reply other threads:[~2016-11-10 16:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478793777-8979-1-git-send-email-mrv@mojatatu.com \
--to=mrv@mojatatu.com \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox