mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02: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() {
|
ip_broadcast() {
|
||||||
local x=$(( 32 - ${1#*/} ))
|
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…
x
Reference in New Issue
Block a user