File: extndm

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 (85 lines) | stat: -rw-r--r-- 1,887 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
# ext_all: allow non-dsmark at root -------------------------------------------
tcc -xif:err -Xx,all 2>&1 | grep -v '^#'
prio {
    class (2)
	if 1;
}
EOF
block eth0 egress
qdisc 1 = prio bands 3
class 2 =
action 2 = class 1:2
match action 2
# ext_all: don't allow classful child qdiscs ----------------------------------
tcc -xif:err -Xx,all 2>&1
prio {
    class (1)
	if 1
    {
	prio {
	    class (2);
	}
    }
}
EOF
ERROR
<stdin>:2: dump_all: if not using ingress or egress/dsmark, only root qdisc may have classes
# ext_all: handle qdiscs hidden in class tree ---------------------------------
tcc -xif:err -Xx,all 2>&1 | grep -v '^#'
#include "tcngreg.def"

cbq (bandwidth 50Bps,allot 1.5kB,avpkt 1kB,maxburst 2p) {
    class (rate 20Bps)
	if raw[0] == 1
    {
	class (rate 10Bps)
	    if raw[0] != 1
	{
	    fifo;
	}
    }
}
EOF
block eth0 egress
qdisc 2 = fifo
qdisc 1 = cbq
class 0 = allot 1536 avpkt 1024 bandwidth 50 maxburst 2 rate 50
class 1 = allot 1536 avpkt 1024 bandwidth 50 maxburst 2 parent 0 rate 20
class 2 = allot 1536 avpkt 1024 bandwidth 50 maxburst 2 parent 1 qdisc 2 rate 10
action 2 = class 1:2
action 1 = class 1:1
match 0:0:8=0x01 action 1
match action 2
# ext_all: don't allow filters hidden in class tree ---------------------------
tcc -xif:err -Xx,all 2>&1
#include "tcngreg.def"

cbq (CBQ_PARAMS) {
    class (rate 20Bps)
	if raw[0] == 1
    {
	class (rate 10Bps)
	    on fw element (1);
    }
}
EOF
ERROR
<stdin>:8: dump_all: classes of root qdisc may not have filters
# ext_all: don't allow classful qdiscs hidden in class tree -------------------
tcc -xif:err -Xx,all 2>&1
#include "tcngreg.def"

cbq (CBQ_PARAMS) {
    class (rate 20Bps)
        if raw[0] == 1
    {
        class (rate 10Bps)
            if raw[0] != 0
	{
	    prio;
	}
    }
}
EOF
ERROR
<stdin>:7: dump_all: if not using ingress or egress/dsmark, only root qdisc may have classes