mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 23:53:30 +01:00
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:
parent
5e7efa2975
commit
04f2417ad8
@ -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 ))
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user