diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index f1f1346..f6d2a98 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -34,7 +34,7 @@ class MpLinkCharacteristics: for n in self.netemAt: cmd = cmd + "sleep " + str(n.delta) 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 + " classid " + MpLinkCharacteristics.tcHtbClassid cmd = cmd + " htb rate " + self.bandwidth + "mbit"