From c3eab43a3b3cdd64ff4077f8d49011dbc393795c Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 23 Jun 2003 00:44:53 +0000 Subject: [PATCH] Fix addition of IP addresses git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@610 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index ed521a10a..7a1e4bd70 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -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