File: tcng-4o

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 (28 lines) | stat: -rw-r--r-- 620 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
# dsmark failed to merge class 0 with auto-generated class for qdisc ----------
PATH=$PATH:tcc/ext tcc -xif:echo -Xx,all 2>&1 >/dev/null
dsmark (indices 1) {
    class (0);
    fifo;
}
EOF
block eth0 egress
qdisc 1 = dsmark indices 1
class 0 = qdisc 2
qdisc 2 = fifo
action 0 = unspec
match action 0
# tccext did not find nested classes ------------------------------------------
PATH=$PATH:tcc/ext tcc -xif:echoh -Xx,all 2>&1 >/dev/null | sed 's/^ *//'
#include "tcngreg.def"

cbq (CBQ_PARAMS) {
    class (0,rate 10Mbps) {
	class (1,rate 1Mbps)
	  if 1;
    }
}
EOF
eth0 egress
  qdisc 1 cbq
    class 0
      class 1