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
|
* with any action .so from the old days. But if someone really
|
||||||
* does that, they would know how to fix this ..
|
* does that, they would know how to fix this ..
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
fprintf (stderr, "usage: tc actions <ACTSPECOP>*\n");
|
fprintf (stderr, "usage: tc actions <ACTSPECOP>*\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Where: \tACTSPECOP := ACR | GD | FL\n"
|
"Where: \tACTSPECOP := ACR | GD | FL\n"
|
||||||
"\tACR := add | change | replace <ACTSPEC>* \n"
|
"\tACR := add | change | replace <ACTSPEC>* \n"
|
||||||
"\tGD := get | delete | <ACTISPEC>*\n"
|
"\tGD := get | delete | <ACTISPEC>*\n"
|
||||||
"\tFL := ls | list | flush | <ACTNAMESPEC>\n"
|
"\tFL := ls | list | flush | <ACTNAMESPEC>\n"
|
||||||
"\tACTNAMESPEC := action <ACTNAME>\n"
|
"\tACTNAMESPEC := action <ACTNAME>\n"
|
||||||
"\tACTISPEC := <ACTNAMESPEC> <INDEXSPEC>\n"
|
"\tACTISPEC := <ACTNAMESPEC> <INDEXSPEC>\n"
|
||||||
"\tACTSPEC := action <ACTDETAIL> [INDEXSPEC]\n"
|
"\tACTSPEC := action <ACTDETAIL> [INDEXSPEC]\n"
|
||||||
"\tINDEXSPEC := index <32 bit indexvalue>\n"
|
"\tINDEXSPEC := index <32 bit indexvalue>\n"
|
||||||
"\tACTDETAIL := <ACTNAME> <ACTPARAMS>\n"
|
"\tACTDETAIL := <ACTNAME> <ACTPARAMS>\n"
|
||||||
"\t\tExample ACTNAME is gact, mirred etc\n"
|
"\t\tExample ACTNAME is gact, mirred etc\n"
|
||||||
"\t\tEach action has its own parameters (ACTPARAMS)\n"
|
"\t\tEach action has its own parameters (ACTPARAMS)\n"
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,16 +50,17 @@ explain(void)
|
||||||
"\tRANDTYPE := netrand | determ\n"
|
"\tRANDTYPE := netrand | determ\n"
|
||||||
"\tVAL : = value not exceeding 10000\n"
|
"\tVAL : = value not exceeding 10000\n"
|
||||||
"\tINDEX := index value used\n"
|
"\tINDEX := index value used\n"
|
||||||
"\n");
|
"\n");
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "Usage: ... gact <ACTION> [INDEX]\n");
|
fprintf(stderr, "Usage: ... gact <ACTION> [INDEX]\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Where: \tACTION := reclassify | drop | continue | pass \n"
|
"Where: \tACTION := reclassify | drop | continue | pass \n"
|
||||||
"\tINDEX := index value used\n"
|
"\tINDEX := index value used\n"
|
||||||
"\n");
|
"\n");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
|
|
@ -67,7 +68,6 @@ usage(void)
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
get_act(char ***argv_p)
|
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++;
|
argv++;
|
||||||
ok++;
|
ok++;
|
||||||
} else if (matches(*argv, "help") == 0) {
|
} else if (matches(*argv, "help") == 0) {
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ static void usage(void);
|
||||||
|
|
||||||
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, " [ classid CLASSID ] [ root | parent CLASSID ]\n");
|
||||||
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ static void usage(void);
|
||||||
|
|
||||||
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, " [ pref PRIO ] [ protocol PROTO ]\n");
|
||||||
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
||||||
fprintf(stderr, " [ root | classid CLASSID ] [ handle FILTERID ]\n");
|
fprintf(stderr, " [ root | classid CLASSID ] [ handle FILTERID ]\n");
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ static int usage(void);
|
||||||
|
|
||||||
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, " [ handle QHANDLE ] [ root | ingress | parent CLASSID ]\n");
|
||||||
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
fprintf(stderr, " [ estimator INTERVAL TIME_CONSTANT ]\n");
|
||||||
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue