File: nocombsta

package info (click to toggle)
tcng 10b-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,644 kB
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 751
file content (200 lines) | stat: -rw-r--r-- 4,423 bytes parent folder | download | duplicates (5)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# nocombine: two distinct classes, without default ----------------------------
tcc -xif:err -Xx,nocombine -Xx,all 2>&1 | grep -v '#'
prio {
    class if raw[0] == 1;
    class if raw[0] == 2;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 1 =
class 2 =
action 2 = class 1:2
action 0 = unspec
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 0
barrier
match 0:0:8=0x02 action 2
match action 0
# nocombine: two distinct classes, with default -------------------------------
tcc -xif:err -Xx,nocombine -Xx,nounspec -Xx,all 2>&1 | grep -v '#'
prio {
    class if raw[0] == 1;
    class if raw[0] == 2;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 1 =
class 2 =
class 3 =
action 3 = class 1:3
action 2 = class 1:2
action 0 = unspec
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 0
barrier
match 0:0:8=0x02 action 2
match action 0
barrier
match 0:11:4=0x0 action 2
match 0:11:4=0x1 action 3
match 0:11:4=0x2 action 2
match 0:11:4=0x3 action 2
match 0:11:4=0x4 action 3
match 0:11:4=0x5 action 3
match 0:11:4=0x6 action 3
match 0:11:4=0x7 action 3
match 0:11:4=0x8 action 1
match 0:11:4=0x9 action 1
match 0:11:4=0xA action 1
match 0:11:4=0xB action 1
match 0:11:4=0xC action 2
match 0:11:4=0xD action 2
match 0:11:4=0xE action 2
match action 2
# nocombine: two classes, self-contained --------------------------------------
tcc -xif:err -Xx,nocombine 2>&1 >/dev/null | grep -v '#'
prio {
    class if raw[0] == 1;
    class if 1;
}
EOF
block eth0 egress
action 2 = class 1:2
action 0 = unspec
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 0
barrier
match action 2
# nocombine: class, then drop -------------------------------------------------
tcc -xif:err -Xx,nocombine -Xx,all 2>&1 | grep -v '#'
prio {
    class if raw[0] == 1;
    drop if raw[0] == 2;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 1 =
action 0 = drop
action 2 = unspec
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 2
barrier
match 0:0:8=0x02 action 0
match action 2
# nocombine: class, then drop, self-contained ---------------------------------
tcc -xif:err -Xx,nocombine -Xx,all 2>&1 | grep -v '#'
prio {
    class if raw[0] == 1;
    drop if 1;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 1 =
action 0 = drop
action 2 = unspec
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 2
barrier
match action 0
# nocombine: drop, then class -------------------------------------------------
tcc -xif:err -Xx,nocombine 2>&1 >/dev/null | grep -v '#'
prio {
    drop if raw[0] == 1;
    class if raw[0] == 2;
}
EOF
block eth0 egress
action 1 = class 1:1
action 0 = unspec
action 2 = drop
match 0:0:8=0x01 action 2
match action 0
barrier
match 0:0:8=0x02 action 1
match action 0
# nocombine: drop, then class, self-contained ---------------------------------
tcc -xif:err -Xx,nocombine 2>&1 >/dev/null | grep -v '#'
prio {
    drop if raw[0] == 1;
    class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
action 0 = unspec
action 2 = drop
match 0:0:8=0x01 action 2
match action 0
barrier
match action 1
# nocombine: negation ---------------------------------------------------------
tcc -xif:err -Xx,nocombine -Xx,all 2>&1 >/dev/null | grep -v '#'
prio {
    drop if raw[0];
    class if 1;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 1 =
action 1 = class 1:1
action 0 = drop
action 2 = unspec
match 0:0:8=0x00 action 2
match action 0
barrier
match action 1
# nocombine: with class selection paths ---------------------------------------
tcc -xif:err -Xx,nocombine -Xx,all 2>&1 | grep -v '#'
dsmark (default_index 0) {
    class (<$c1>) if raw[0] == 1;
    class (<$c2>) if raw[0] == 2;
    drop if 1;
    prio {
	$c1 = class;
	$c2 = class;
    }
}
EOF
block eth0 egress
qdisc 2 = prio bands 3
class 1 =
class 2 =
qdisc 1 = dsmark default_index 0 indices 4
class 0 = qdisc 2
class 1 =
class 2 =
action 0 = drop
action 2 = class 1:2,2:2
action 3 = unspec
action 1 = class 1:1,2:1
match 0:0:8=0x01 action 1
match action 3
barrier
match 0:0:8=0x02 action 2
match action 3
barrier
match action 0
# nocombine: with class selection paths and nounspec (can't work) -------------
tcc -xif:err -Xx,nocombine -Xx,nounspec -Xx,all 2>&1
dsmark (default_index 0) {
    class (<$c1>) if raw[0] == 1;
    class (<$c2>) if raw[0] == 2;
    drop if 1;
    prio {
	$c1 = class;
	$c2 = class;
    }
}
EOF
ERROR
<stdin>:5: dump_all found no matching choice for value 0x0 in tcindex