File: extlocext

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 (83 lines) | stat: -rw-r--r-- 2,425 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
# block location is reported --------------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | grep -v '^#'
eth1 (pragma "force_failure") {
    fifo;
}
EOF
<stdin>:1: forced failure
external program "echoh" exited with status 1 when building
# bucket location is reported -------------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | grep -v '^#'
$p = police (rate 0bps,burst 0B,pragma "force_failure");

prio {
    class if conform $p;
}
EOF
<stdin>:1: forced failure
external program "echoh" exited with status 1 when building
# qdisc location is reported --------------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | grep -v '^#'
fifo (pragma "force_failure");
EOF
eth0 egress
<stdin>:1: forced failure
external program "echoh" exited with status 1 when building
# class location is reported --------------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | sed '/^#/d;s/ *//'
prio {
    class (pragma "force_failure");
}
EOF
eth0 egress
  qdisc 1 prio
<stdin>:2: forced failure
external program "echoh" exited with status 1 when building
# child qdisc location is reported --------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | sed '/^#/d;s/ *//'
prio {
    fifo (pragma "force_failure");
}
EOF
eth0 egress
  qdisc 1 prio
    class 1
<stdin>:2: forced failure
external program "echoh" exited with status 1 when building
# nested class location is reported -------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | sed '/^#/d;s/ *//;s/cbq.*/cbq/'
#include "tcngreg.def"

cbq (CBQ_PARAMS) {
    class (rate 2Mbps) {
	class (rate 1Mbps,pragma "force_failure");
	class (rate 1Mbps);
    }
}
EOF
eth0 egress
  qdisc 1 cbq
    class 0
      class 1
<stdin>:5: forced failure
external program "echoh" exited with status 1 when building
# nested class location is reported -------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 | sed '/^#/d;s/ *//;s/cbq.*/cbq/'
#include "tcngreg.def"

cbq (CBQ_PARAMS) {
    class (rate 2Mbps) {
	class (rate 1Mbps) {
	    fifo (pragma "force_failure");
	}
	class (rate 1Mbps);
    }
}
EOF
eth0 egress
  qdisc 1 cbq
    class 0
      class 1
      class 2
<stdin>:6: forced failure
external program "echoh" exited with status 1 when building