1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-23 07:01:06 +02:00

[backfire] backport r25179

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25180 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-01-27 22:20:31 +00:00
parent a6b6acacda
commit bdcad9402e
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall PKG_NAME:=firewall
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=20 PKG_RELEASE:=21
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View File

@ -388,10 +388,10 @@ fw_rule() {
[ -n "$dest" ] && TARGET="zone_${dest}_${TARGET}" [ -n "$dest" ] && TARGET="zone_${dest}_${TARGET}"
fi fi
local pos
eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))'
add_rule() { add_rule() {
local pos
eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))'
$IPTABLES -t $TABLE -I $ZONE $pos \ $IPTABLES -t $TABLE -I $ZONE $pos \
$srcaddr $destaddr \ $srcaddr $destaddr \
${proto:+-p $proto} \ ${proto:+-p $proto} \