mpLinkCharacteristics: seems to work?

This commit is contained in:
Quentin De Coninck 2016-05-08 19:25:41 +02:00
parent 0500749b90
commit fb1f57a452

View File

@ -34,7 +34,7 @@ class MpLinkCharacteristics:
for n in self.netemAt: for n in self.netemAt:
cmd = cmd + "sleep " + str(n.delta) cmd = cmd + "sleep " + str(n.delta)
cmd = cmd + " && (( tc qdisc del dev " + ifname + " root " cmd = cmd + " && (( tc qdisc del dev " + ifname + " root "
cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:0 htb && tc class add dev " + ifname + " " cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:1 htb direct_qlen " + self.queueSize + " && tc class add dev " + ifname + " "
cmd = cmd + " parent 5:1 " cmd = cmd + " parent 5:1 "
cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid
cmd = cmd + " htb rate " + self.bandwidth + "mbit" cmd = cmd + " htb rate " + self.bandwidth + "mbit"