mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
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:
parent
b0270eacfa
commit
89ad1b807e
@ -390,7 +390,7 @@ in_network() # $1 = IP address, $2 = CIDR network
|
|||||||
{
|
{
|
||||||
local netmask=$(ip_netmask $2)
|
local netmask=$(ip_netmask $2)
|
||||||
|
|
||||||
test $(( $(decodeaddr $1) & $netmask)) -eq $(( $(decodeaddr ${2%/*}) & $netmask ))
|
test $(( $(decodeaddr $1) & $netmask)) = $(( $(decodeaddr ${2%/*}) & $netmask ))
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user