Fix broadcast address for /0 net

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5145 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-21 17:39:33 +00:00
parent 5e7efa2975
commit 04f2417ad8

View File

@ -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 ))
}
#