Another hack to work around BusyBox ash on OpenWRT

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7976 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-12-30 18:31:41 +00:00
parent b0270eacfa
commit 89ad1b807e

View File

@ -390,7 +390,7 @@ in_network() # $1 = IP address, $2 = CIDR network
{
local netmask=$(ip_netmask $2)
test $(( $(decodeaddr $1) & $netmask)) -eq $(( $(decodeaddr ${2%/*}) & $netmask ))
test $(( $(decodeaddr $1) & $netmask)) = $(( $(decodeaddr ${2%/*}) & $netmask ))
}
#