From 5d37860a9de55a71e73a5adaf64d924107f34e71 Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 20 May 2009 21:12:09 +0000 Subject: [PATCH] [qos-scripts] Fix packet/connection marking when using halfduplex option This fixes an bug where QoS is not applied to packets passing through POSTROUTING chain when using halfduplex option. Since QoS is done on IMQ device, packets should be marked before sending to the IMQ. Signed-off-by: Vasilis Tsiligiannis git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15947 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/qos-scripts/files/usr/lib/qos/generate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh index 94c01d4619..4ee29ca1e0 100755 --- a/package/qos-scripts/files/usr/lib/qos/generate.sh +++ b/package/qos-scripts/files/usr/lib/qos/generate.sh @@ -401,11 +401,11 @@ start_cg() { append up "iptables -t mangle -A OUTPUT -o $device -j ${cg}" "$N" append up "iptables -t mangle -A FORWARD -o $device -j ${cg}" "$N" [ -z "$dl" ] || { + append down "iptables -t mangle -A POSTROUTING -o $device -j ${cg}" "$N" [ -z "$halfduplex" ] || { append down "iptables -t mangle -A POSTROUTING -o $device -j IMQ --todev $imqdev" "$N" } append down "iptables -t mangle -A PREROUTING -i $device -j ${cg}" "$N" - append down "iptables -t mangle -A POSTROUTING -o $device -j ${cg}" "$N" append down "iptables -t mangle -A PREROUTING -i $device -j IMQ --todev $imqdev" "$N" } done -- cgit v1.2.3