From 0500749b90f62f7b7717d85dccbce610833b751e Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Sun, 8 May 2016 19:19:46 +0200 Subject: [PATCH] mpLinkCharacteristics: trying to make it works --- src/mpLinkCharacteristics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index f3a9d2e..f1f1346 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -34,8 +34,8 @@ class MpLinkCharacteristics: for n in self.netemAt: cmd = cmd + "sleep " + str(n.delta) cmd = cmd + " && (( tc qdisc del dev " + ifname + " root " - cmd = cmd + " && tc class add dev " + ifname + " " - cmd = cmd + " parent root " + cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:0 htb && tc class add dev " + ifname + " " + cmd = cmd + " parent 5:1 " cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid cmd = cmd + " htb rate " + self.bandwidth + "mbit" cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") || "