mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-16 22:45:17 +08:00
More TC patches from Jamal.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
This commit is contained in:
parent
93576793a1
commit
302d3fb720
@ -43,21 +43,22 @@ void act_usage(void)
|
||||
* with any action .so from the old days. But if someone really
|
||||
* does that, they would know how to fix this ..
|
||||
*
|
||||
*/
|
||||
*/
|
||||
fprintf (stderr, "usage: tc actions <ACTSPECOP>*\n");
|
||||
fprintf(stderr,
|
||||
"Where: \tACTSPECOP := ACR | GD | FL\n"
|
||||
"\tACR := add | change | replace <ACTSPEC>* \n"
|
||||
"\tGD := get | delete | <ACTISPEC>*\n"
|
||||
"\tFL := ls | list | flush | <ACTNAMESPEC>\n"
|
||||
"\tACTNAMESPEC := action <ACTNAME>\n"
|
||||
"\tACTISPEC := <ACTNAMESPEC> <INDEXSPEC>\n"
|
||||
"\tACTSPEC := action <ACTDETAIL> [INDEXSPEC]\n"
|
||||
"\tINDEXSPEC := index <32 bit indexvalue>\n"
|
||||
"\tACTDETAIL := <ACTNAME> <ACTPARAMS>\n"
|
||||
"\t\tExample ACTNAME is gact, mirred etc\n"
|
||||
"\t\tEach action has its own parameters (ACTPARAMS)\n"
|
||||
"\n");
|
||||
"\tACR := add | change | replace <ACTSPEC>* \n"
|
||||
"\tGD := get | delete | <ACTISPEC>*\n"
|
||||
"\tFL := ls | list | flush | <ACTNAMESPEC>\n"
|
||||
"\tACTNAMESPEC := action <ACTNAME>\n"
|
||||
"\tACTISPEC := <ACTNAMESPEC> <INDEXSPEC>\n"
|
||||
"\tACTSPEC := action <ACTDETAIL> [INDEXSPEC]\n"
|
||||
"\tINDEXSPEC := index <32 bit indexvalue>\n"
|
||||
"\tACTDETAIL := <ACTNAME> <ACTPARAMS>\n"
|
||||
"\t\tExample ACTNAME is gact, mirred etc\n"
|
||||
"\t\tEach action has its own parameters (ACTPARAMS)\n"
|
||||
"\n");
|
||||
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
@ -50,16 +50,17 @@ explain(void)
|
||||
"\tRANDTYPE := netrand | determ\n"
|
||||
"\tVAL : = value not exceeding 10000\n"
|
||||
"\tINDEX := index value used\n"
|
||||
"\n");
|
||||
"\n");
|
||||
#else
|
||||
fprintf(stderr, "Usage: ... gact <ACTION> [INDEX]\n");
|
||||
fprintf(stderr,
|
||||
"Where: \tACTION := reclassify | drop | continue | pass \n"
|
||||
"Where: \tACTION := reclassify | drop | continue | pass \n"
|
||||
"\tINDEX := index value used\n"
|
||||
"\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
@ -67,7 +68,6 @@ usage(void)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_act(char ***argv_p)
|
||||
{
|
||||
@ -180,7 +180,7 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, struc
|
||||
argv++;
|
||||
ok++;
|
||||
} else if (matches(*argv, "help") == 0) {
|
||||
usage();
|
||||
usage();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ static void usage(void);
|
||||
|
||||
static void usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: tc class [ add | del | change | replace ] dev STRING\n");
|
||||
fprintf(stderr, "Usage: tc class [ add | del | change | get ] dev STRING\n");
|
||||
fprintf(stderr, " [ classid CLASSID ] [ root | parent CLASSID ]\n");
|
||||
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
||||
fprintf(stderr, "\n");
|
||||
|
@ -32,7 +32,7 @@ static void usage(void);
|
||||
|
||||
static void usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: tc filter [ add | del | change | replace ] dev STRING\n");
|
||||
fprintf(stderr, "Usage: tc filter [ add | del | change | get ] dev STRING\n");
|
||||
fprintf(stderr, " [ pref PRIO ] [ protocol PROTO ]\n");
|
||||
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
||||
fprintf(stderr, " [ root | classid CLASSID ] [ handle FILTERID ]\n");
|
||||
|
@ -29,7 +29,7 @@ static int usage(void);
|
||||
|
||||
static int usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: tc qdisc [ add | del | replace | change ] dev STRING\n");
|
||||
fprintf(stderr, "Usage: tc qdisc [ add | del | replace | change | get ] dev STRING\n");
|
||||
fprintf(stderr, " [ handle QHANDLE ] [ root | ingress | parent CLASSID ]\n");
|
||||
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
||||
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
||||
|
Loading…
Reference in New Issue
Block a user