tc: improved usage help for fw classifier.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
This commit is contained in:
Roman Mashak 2016-11-10 11:02:57 -05:00 committed by Stephen Hemminger
parent 4fb4a10e12
commit 4b5451c4cd
1 changed files with 13 additions and 4 deletions

View File

@ -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)