]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
discourage use of direct policer interface
authorJamal Hadi Salim <hadi@mojatatu.com>
Mon, 6 Oct 2014 11:41:21 +0000 (07:41 -0400)
committerStephen Hemminger <shemming@brocade.com>
Thu, 9 Oct 2014 15:26:57 +0000 (08:26 -0700)
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/f_basic.c
tc/f_bpf.c
tc/f_cgroup.c
tc/f_flow.c
tc/f_fw.c
tc/f_rsvp.c
tc/f_u32.c

index 67d26ec69e019e5580d7e4b3fc495de61ffe6f7a..1c33ca3d3f065d71370613ddde630997e908668c 100644 (file)
 
 static void explain(void)
 {
-       fprintf(stderr, "Usage: ... basic [ match EMATCH_TREE ] [ police POLICE_SPEC ]\n");
+       fprintf(stderr, "Usage: ... basic [ match EMATCH_TREE ] \n");
        fprintf(stderr, "                 [ action ACTION_SPEC ] [ classid CLASSID ]\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "Where: SELECTOR := SAMPLE SAMPLE ...\n");
        fprintf(stderr, "       FILTERID := X:Y:Z\n");
+       fprintf(stderr, "       ACTION_SPEC := ... look at individual actions\n");
        fprintf(stderr, "\nNOTE: CLASSID is parsed as hexadecimal input.\n");
 }
 
index 8f1593c9af7a0d1ba65d593e7532503484483e3c..48635a70629bf6fd1dbb3e8ed7dba4e85b7569f7 100644 (file)
@@ -34,13 +34,14 @@ static void explain(void)
        fprintf(stderr, " [inline]:     run bytecode BPF_BYTECODE\n");
        fprintf(stderr, " [from file]:  run bytecode-file FILE\n");
        fprintf(stderr, "\n");
-       fprintf(stderr, "               [ police POLICE_SPEC ] [ action ACTION_SPEC ]\n");
+       fprintf(stderr, "               [ action ACTION_SPEC ]\n");
        fprintf(stderr, "               [ classid CLASSID ]\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "Where BPF_BYTECODE := \'s,c t f k,c t f k,c t f k,...\'\n");
        fprintf(stderr, "      c,t,f,k and s are decimals; s denotes number of 4-tuples\n");
        fprintf(stderr, "Where FILE points to a file containing the BPF_BYTECODE string\n");
-       fprintf(stderr, "\nNOTE: CLASSID is parsed as hexadecimal input.\n");
+       fprintf(stderr, "\nACTION_SPEC := ... look at individual actions\n");
+       fprintf(stderr, "NOTE: CLASSID is parsed as hexadecimal input.\n");
 }
 
 static int bpf_parse_string(char *arg, bool from_file, __u16 *bpf_len,
index 4a4026ed9ad7a89a024697205a0fed61f148a689..53f7406f2bfa0b256dcbb555b30b593e39657cdc 100644 (file)
@@ -18,8 +18,8 @@
 
 static void explain(void)
 {
-       fprintf(stderr, "Usage: ... cgroup [ match EMATCH_TREE ] [ police POLICE_SPEC ]\n");
-       fprintf(stderr, "                 [ action ACTION_SPEC ]\n");
+       fprintf(stderr, "Usage: ... cgroup [ match EMATCH_TREE ]\n");
+       fprintf(stderr, "                  [ action ACTION_SPEC ]\n");
 }
 
 static int cgroup_parse_opt(struct filter_util *qu, char *handle,
index 7d4bb7aff65dee96c008650bb1c353f5257e6dd9..b454a652b8218aa8b89ef7d5cce7206d417d0a4a 100644 (file)
@@ -27,7 +27,7 @@ static void explain(void)
 " [hashing mode]: hash keys KEY-LIST ... [ perturb SECS ]\n"
 "\n"
 "                 [ divisor NUM ] [ baseclass ID ] [ match EMATCH_TREE ]\n"
-"                 [ police POLICE_SPEC ] [ action ACTION_SPEC ]\n"
+"                 [ action ACTION_SPEC ]\n"
 "\n"
 "KEY-LIST := [ KEY-LIST , ] KEY\n"
 "KEY      := [ src | dst | proto | proto-src | proto-dst | iif | priority | \n"
index 161e2f70df03ac33c0eda9f7722fac03c38433ba..165f4896f48080056f55ecc4460a48e817b37a52 100644 (file)
--- a/tc/f_fw.c
+++ b/tc/f_fw.c
@@ -25,8 +25,8 @@
 
 static void explain(void)
 {
-       fprintf(stderr, "Usage: ... fw [ classid CLASSID ] [ police POLICE_SPEC ]\n");
-       fprintf(stderr, "       POLICE_SPEC := ... look at TBF\n");
+       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");
 }
index 14f24b10bf904ccdb41fe732369acf2ced4d36fa..cb7b8fba1a0c8cac8d0bb97cff2b6a910cd9bc29 100644 (file)
@@ -28,11 +28,11 @@ static void explain(void)
 {
        fprintf(stderr, "Usage: ... rsvp ipproto PROTOCOL session DST[/PORT | GPI ]\n");
        fprintf(stderr, "                [ sender SRC[/PORT | GPI ]\n");
-       fprintf(stderr, "                [ classid CLASSID ] [ police POLICE_SPEC ]\n");
+       fprintf(stderr, "                [ classid CLASSID ] [ action ACTION_SPEC ]\n");
        fprintf(stderr, "                [ tunnelid ID ] [ tunnel ID skip NUMBER ]\n");
        fprintf(stderr, "Where: GPI := { flowlabel NUMBER | spi/ah SPI | spi/esp SPI |\n");
        fprintf(stderr, "                u{8|16|32} NUMBER mask MASK at OFFSET}\n");
-       fprintf(stderr, "       POLICE_SPEC := ... look at TBF\n");
+       fprintf(stderr, "       ACTION_SPEC := ... look at individual actions\n");
        fprintf(stderr, "       FILTERID := X:Y\n");
        fprintf(stderr, "\nNOTE: CLASSID is parsed as hexadecimal input.\n");
 }
index f2a862d0a56eea1c7ed94ff1ce3d8a5fd99c01f5..80a50970445e6f05c90a17aaa02940453e109606 100644 (file)
@@ -32,7 +32,7 @@ static void explain(void)
 {
        fprintf(stderr, "Usage: ... u32 [ match SELECTOR ... ] [ link HTID ]"
                " [ classid CLASSID ]\n");
-       fprintf(stderr, "               [ police POLICE_SPEC ]"
+       fprintf(stderr, "               [ action ACTION_SPEC ]"
                " [ offset OFFSET_SPEC ]\n");
        fprintf(stderr, "               [ ht HTID ] [ hashkey HASHKEY_SPEC ]\n");
        fprintf(stderr, "               [ sample SAMPLE ]\n");