mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 03:42:28 +02:00
[package] qos-scripts: Fix generation of IMQ firewall rules on halfduplex mode (#7800)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23227 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0848396060
commit
0ced2f56c5
@ -380,7 +380,6 @@ start_cg() {
|
||||
local iptrules
|
||||
local pktrules
|
||||
local sizerules
|
||||
local download
|
||||
enum_classes "$cg"
|
||||
add_rules iptrules "$ctrules" "iptables -t mangle -A ${cg}_ct"
|
||||
config_get classes "$cg" classes
|
||||
@ -397,12 +396,14 @@ start_cg() {
|
||||
config_get classgroup "$iface" classgroup
|
||||
config_get device "$iface" device
|
||||
config_get imqdev "$iface" imqdev
|
||||
config_get dl "$iface" download
|
||||
config_get upload "$iface" upload
|
||||
config_get download "$iface" download
|
||||
config_get halfduplex "$iface" halfduplex
|
||||
download="${download:-${halfduplex:+$upload}}"
|
||||
add_insmod ipt_IMQ
|
||||
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" ] || {
|
||||
[ -z "$download" ] || {
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user