Changeset 111 for system/generators/traffic_shaping.php
- Timestamp:
- Nov 3, 2008, 7:48:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/generators/traffic_shaping.php
r103 r111 23 23 $VoipSpeedIn = 100; //$SpeedReserve; 24 24 $VoipSpeedOut = 100; //$SpeedReserve; 25 $FreeInetSpeed = 64; 25 26 26 27 … … 50 51 fputs($File, "/sbin/tc class add dev imq0 parent 1:0 classid 1:1 htb rate ".$TotalMaxSpeedIn."kbit quantum 1500\n"); 51 52 fputs($FileClassInfo, "1:2 Internet zdarma\n"); 52 fputs($File, "/sbin/tc class add dev imq0 parent 1:1 classid 1:".$FreeInetClass." htb rate 32kbit prio 3 quantum 1500\n");53 fputs($File, "/sbin/tc class add dev imq0 parent 1:1 classid 1:".$FreeInetClass." htb rate ".$FreeInetSpeed."kbit prio 3 quantum 1500\n"); 53 54 fputs($File, "/sbin/tc qdisc add dev imq0 parent 1:".$FreeInetClass." handle ".$FreeInetClass.": sfq perturb 10\n"); 54 55 } … … 59 60 fputs($File, "/sbin/tc qdisc add dev imq1 root handle 1:0 htb default 2\n"); 60 61 fputs($File, "/sbin/tc class add dev imq1 parent 1:0 classid 1:1 htb rate ".$TotalMaxSpeedOut."kbit quantum 1500\n"); 61 fputs($File, "/sbin/tc class add dev imq1 parent 1:1 classid 1:".$FreeInetClass." htb rate 32kbit prio 3 quantum 1500\n");62 fputs($File, "/sbin/tc class add dev imq1 parent 1:1 classid 1:".$FreeInetClass." htb rate ".$FreeInetSpeed."kbit prio 3 quantum 1500\n"); 62 63 fputs($File, "/sbin/tc qdisc add dev imq1 parent 1:".$FreeInetClass." handle ".$FreeInetClass.": sfq perturb 10\n"); 63 64 }
Note:
See TracChangeset
for help on using the changeset viewer.