1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# ext_all selects root class if classification fails --------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null | grep action
#include "tcngreg.def"
dsmark (indices 16) {
class (0) if raw[0] == 0;
class (1) if raw[0] == 1;
cbq (CBQ_PARAMS) {
class (rate 2Mbps)
on tcindex element (0);
}
}
EOF
action 2 = unspec
action 1 = class 1:1,2:0
action 0 = class 1:0,2:1
match 0:0:8=0x00 action 0
match 0:0:8=0x01 action 1
match action 2
# ext_all follows filters at classes ------------------------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null | grep action
#include "tcngreg.def"
dsmark (indices 16) {
class (0) if raw[0] == 0;
class (1) if raw[0] == 1;
cbq (CBQ_PARAMS) {
class (rate 2Mbps)
on tcindex(mask 2) element (0)
{
class (2,rate 1Mbps)
on tcindex element (0);
class (3,rate 1Mbps)
on tcindex element (1);
}
}
}
EOF
action 2 = unspec
action 1 = class 1:1,2:3
action 0 = class 1:0,2:2
match 0:0:8=0x00 action 0
match 0:0:8=0x01 action 1
match action 2
# ext_all stays at class if further filters fail ------------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null | grep action
#include "tcngreg.def"
dsmark (indices 16) {
class (0) if raw[0] == 0;
class (1) if raw[0] == 1;
cbq (CBQ_PARAMS) {
class (1,rate 2Mbps)
on tcindex(mask 2) element (0)
{
class (2,rate 1Mbps)
on tcindex element (0);
class (3,rate 1Mbps)
on tcindex element (3);
}
}
}
EOF
action 2 = unspec
action 1 = class 1:1,2:1
action 0 = class 1:0,2:2
match 0:0:8=0x00 action 0
match 0:0:8=0x01 action 1
match action 2
# ext_all refuses priomap at qdisc --------------------------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null
#include "tcngreg.def"
dsmark (indices 16) {
class (0) if 1;
cbq (CBQ_PARAMS,priomap $c) {
$c = class (1,rate 2Mbps)
on tcindex(mask 2) element (0);
}
}
EOF
ERROR
<stdin>:5: dump_all does not support the "priomap" parameter
# ext_all refuses priomap at class --------------------------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null
#include "tcngreg.def"
dsmark (indices 16) {
class (0) if 1;
cbq (CBQ_PARAMS) {
class (1,rate 2Mbps,priomap $c)
on tcindex(mask 2) element (0)
{
$c = class (2,rate 1Mbps);
}
}
}
EOF
ERROR
<stdin>:6: dump_all does not support the "priomap" parameter
|