mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 22:11:05 +02:00
[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 <b_tsiligiannis@silverton.gr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15947 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0f805cdf51
commit
5d37860a9d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user