[package] firewall: make sure that -m mac is used with --mac-source, follow up to...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 7 Jul 2011 10:28:31 +0000 (10:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 7 Jul 2011 10:28:31 +0000 (10:28 +0000)
SVN-Revision: 27519

package/firewall/Makefile
package/firewall/files/lib/core_redirect.sh

index 50b916a5813ea4a4a06e05699607cabe0982b47c..b14de0809595be55cd352ac7650b604df76efdbd 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=firewall
 
 PKG_VERSION:=2
-PKG_RELEASE:=29
+PKG_RELEASE:=30
 
 include $(INCLUDE_DIR)/package.mk
 
index e8d5ceab03708f3554397e56ac6a816fbcfa5d99..a3e70d40d74fd6b051c51a9375f600240dbf75a8 100644 (file)
@@ -109,7 +109,7 @@ fw_load_redirect() {
                                $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
                                $pr \
                                $srcports $destports \
-                               $sm \
+                               ${sm:+-m mac $sm} \
                                $redirect_extra \
                        }
                done