[package] firewall: make sure that -m mac is used with --mac-source, follow up to...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Jul 2011 10:28:31 +0000 (10:28 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Jul 2011 10:28:31 +0000 (10:28 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27519 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 50b916a..b14de08 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=firewall
 
 PKG_VERSION:=2
 PKG_NAME:=firewall
 
 PKG_VERSION:=2
-PKG_RELEASE:=29
+PKG_RELEASE:=30
 
 include $(INCLUDE_DIR)/package.mk
 
 
 include $(INCLUDE_DIR)/package.mk
 
index e8d5cea..a3e70d4 100644 (file)
@@ -109,7 +109,7 @@ fw_load_redirect() {
                                $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
                                $pr \
                                $srcports $destports \
                                $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
                                $pr \
                                $srcports $destports \
-                               $sm \
+                               ${sm:+-m mac $sm} \
                                $redirect_extra \
                        }
                done
                                $redirect_extra \
                        }
                done
This page took 0.024489 seconds and 4 git commands to generate.