]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: improved usage help for fw classifier.
authorRoman Mashak <mrv@mojatatu.com>
Thu, 10 Nov 2016 16:02:57 +0000 (11:02 -0500)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 29 Nov 2016 19:41:58 +0000 (11:41 -0800)
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/f_fw.c

index 29c985490765dba3bc1b4452b568d70f19157234..790bef960af157dcea03f6a295d9a5e2d850866a 100644 (file)
--- a/tc/f_fw.c
+++ b/tc/f_fw.c
 
 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)