From: Roman Mashak Date: Thu, 10 Nov 2016 16:02:57 +0000 (-0500) Subject: tc: improved usage help for fw classifier. X-Git-Tag: v4.9.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5451c4cde3f41cb9829ee53405393d8d91a555;p=thirdparty%2Fiproute2.git tc: improved usage help for fw classifier. Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- diff --git a/tc/f_fw.c b/tc/f_fw.c index 29c985490..790bef960 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)