diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-11 20:04:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-11 20:04:34 +0000 |
commit | f3dd8278bbc3cc62c35239a2721144e220b24004 (patch) | |
tree | 275acc3ef643b0347281335c06d6df52970f33cc /package/firewall/files/lib/core_forwarding.sh | |
parent | 9499018b9ac80ef74aeac3bffea006855dc11bfe (diff) |
firewall: - simplify masquerade rule setup - remove various subshell invocations - speedup fw() by not relying on xargs and pipes - rework SNAT support - attach to dest zone, use src_dip/src_dport as snat source
SVN-Revision: 23024
Diffstat (limited to 'package/firewall/files/lib/core_forwarding.sh')
-rw-r--r-- | package/firewall/files/lib/core_forwarding.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/firewall/files/lib/core_forwarding.sh b/package/firewall/files/lib/core_forwarding.sh index b62e18a76e..c4a968143d 100644 --- a/package/firewall/files/lib/core_forwarding.sh +++ b/package/firewall/files/lib/core_forwarding.sh @@ -27,7 +27,8 @@ fw_load_forwarding() { target=zone_${forwarding_dest}_ACCEPT } - local mode=$(fw_get_family_mode ${forwarding_family:-x} ${forwarding_dest:-${forwarding_src:--}} i) + local mode + fw_get_family_mode mode ${forwarding_family:-x} ${forwarding_dest:-${forwarding_src:--}} i fw add $mode f $chain $target ^ |