File: dsind

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (46 lines) | stat: -rw-r--r-- 1,206 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
# dsmark allows classes with no-op changes above "indices" (1/2) --------------
tcc -c
dsmark (indices 2) {
    class (1) if raw[0] == 1;
    class (2,mask 0xff) if 1;
}
EOF
# dsmark allows classes with no-op changes above "indices" (2/2) --------------
tcc -c
dsmark (indices 2) {
    class (1) if raw[0] == 1;
    class (2,value 0) if 1;
}
EOF
# check: dsmark still refuses non-no-op changes (1/2) -------------------------
tcc -c 2>&1
dsmark (indices 2) {
    class (1) if raw[0] == 1;
    class (2,mask 0xfe) if 1;
}
EOF
ERROR
<stdin>:3: dsmark class number (2) must be < indices (2) if using parameters
# check: dsmark still refuses non-no-op changes (2/2) -------------------------
tcc -c 2>&1
dsmark (indices 2) {
    class (1) if raw[0] == 1;
    class (2,value 1) if 1;
}
EOF
ERROR
<stdin>:3: dsmark class number (2) must be < indices (2) if using parameters
# dsmark generates indices (tc) -----------------------------------------------
tcc | sed '/.* dsmark /s///p;d'
dsmark {
   class (4) if 1;
}
EOF
indices 8
# dsmark generates indices (ext) ----------------------------------------------
tcc -xif:err -Xx,all 2>&1 | grep dsmark
dsmark {
    class (3) if 1;
}
EOF
qdisc 1 = dsmark indices 4