mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 10:51:02 +01:00
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:
parent
0b075e78b6
commit
c3eab43a3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user