aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-07 10:28:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-07 10:28:31 +0000
commita92ed1808c41bb8dfac0836aeefcbca8891c715c (patch)
tree2f9a61af03466f992c20ddf4dd60026a6550ac9e /package/firewall/files
parentb15f8f765ad4fbff797cf33155f5fba28ba70af1 (diff)
downloadupstream-a92ed1808c41bb8dfac0836aeefcbca8891c715c.tar.gz
upstream-a92ed1808c41bb8dfac0836aeefcbca8891c715c.tar.bz2
upstream-a92ed1808c41bb8dfac0836aeefcbca8891c715c.zip
firewall: make sure that -m mac is used with --mac-source, follow up to r27508
SVN-Revision: 27519
Diffstat (limited to 'package/firewall/files')
-rw-r--r--package/firewall/files/lib/core_redirect.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/lib/core_redirect.sh b/package/firewall/files/lib/core_redirect.sh
index e8d5ceab03..a3e70d40d7 100644
--- a/package/firewall/files/lib/core_redirect.sh
+++ b/package/firewall/files/lib/core_redirect.sh
@@ -109,7 +109,7 @@ fw_load_redirect() {
$srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
$pr \
$srcports $destports \
- $sm \
+ ${sm:+-m mac $sm} \
$redirect_extra \
}
done