From fb1f57a4524e299ec627fc4197874d5fb48807fa Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Sun, 8 May 2016 19:25:41 +0200 Subject: [PATCH] mpLinkCharacteristics: seems to work? --- src/mpLinkCharacteristics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"