File: fastpol

package info (click to toggle)
tcng 10b-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,644 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (60 lines) | stat: -rw-r--r-- 1,920 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
# tcc does not disturb assigned policer ids -----------------------------------
tcc -xif:err -Xx,all 2>&1 | grep bucket
$a = bucket(10,burst 1kB,rate 1kbps);
$b = bucket(20,burst 1kB,rate 1kbps);
$c = bucket(30,burst 1kB,rate 1kbps);
prio {
    class if conform $a || conform $b || conform $c;
}
EOF
bucket 10 = 125 0 1024 1024 0
bucket 20 = 125 0 1024 1024 0
bucket 30 = 125 0 1024 1024 0
# tcc assigns policer ids -----------------------------------------------------
tcc -xif:err -Xx,all 2>&1 | grep bucket
$a = bucket(burst 1kB,rate 1kbps);
$b = bucket(burst 1kB,rate 1kbps);
$c = bucket(burst 1kB,rate 1kbps);
prio {
    class if conform $a || conform $b || conform $c;
}
EOF
bucket 1 = 125 0 1024 1024 0
bucket 2 = 125 0 1024 1024 0
bucket 3 = 125 0 1024 1024 0
# tcc fills policer id "holes" ------------------------------------------------
tcc -xif:err -Xx,all 2>&1 | grep bucket
$a = bucket(10,burst 1kB,rate 1kbps);
$b = bucket(burst 1kB,rate 1kbps);
$c = bucket(30,burst 1kB,rate 1kbps);
prio {
    class if conform $a || conform $b || conform $c;
}
EOF
bucket 10 = 125 0 1024 1024 0
bucket 1 = 125 0 1024 1024 0
bucket 30 = 125 0 1024 1024 0
# tcc skips policer ids in use ------------------------------------------------
tcc -xif:err -Xx,all 2>&1 | grep bucket
$a = bucket(10,burst 1kB,rate 1kbps);
$b = bucket(burst 1kB,rate 1kbps);
$c = bucket(1,burst 1kB,rate 1kbps);
prio {
    class if conform $a || conform $b || conform $c;
}
EOF
bucket 10 = 125 0 1024 1024 0
bucket 2 = 125 0 1024 1024 0
bucket 1 = 125 0 1024 1024 0
# tcc skips policer ids in use (numbers requiring sorting) --------------------
tcc -xif:err -Xx,all 2>&1 | grep bucket
$a = bucket(3,burst 1kB,rate 1kbps);
$b = bucket(burst 1kB,rate 1kbps);
$c = bucket(1,burst 1kB,rate 1kbps);
prio {
    class if conform $a || conform $b || conform $c;
}
EOF
bucket 3 = 125 0 1024 1024 0
bucket 2 = 125 0 1024 1024 0
bucket 1 = 125 0 1024 1024 0