From 04f2417ad88829a3fa87a171a79f71168c1507f7 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 21 Dec 2006 17:39:33 +0000 Subject: [PATCH] Fix broadcast address for /0 net git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5145 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/lib.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/lib.base b/Shorewall/lib.base index 60b6bf275..ef99b389b 100644 --- a/Shorewall/lib.base +++ b/Shorewall/lib.base @@ -529,7 +529,7 @@ ip_network() { ip_broadcast() { local x=$(( 32 - ${1#*/} )) - [ $x -eq 0 ] && echo -1 || echo $(( $(( 1 $LEFTSHIFT $x )) - 1 )) + [ $x -eq 32 ] && echo -1 || echo $(( $(( 1 $LEFTSHIFT $x )) - 1 )) } #