Fix addition of IP addresses

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@610 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-23 00:44:53 +00:00
parent 0b075e78b6
commit c3eab43a3b

View File

@ -2907,7 +2907,7 @@ networkaddress() {
local decodedaddr=`decodeaddr ${1%/*}`
local netmask=`ip_netmask ${1#*/}`
echo `encodeaddr $((decodedaddr & netmask))`
echo `encodeaddr $(($decodedaddr & $netmask))`
}
#
# Calculate broadcast address from CIDR