1
0
mirror of https://gitlab.com/shorewall/code.git synced 2025-01-21 13:09:01 +01:00

Correct ip_range handling of CIDR

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@617 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-26 14:29:24 +00:00
parent 753cf160e4
commit f562fa4836

View File

@ -2851,8 +2851,8 @@ get_routed_subnets() # $1 = interface name
decodeaddr() {
local x
local temp=0
ifs=$IFS
local ifs=$IFS
IFS=.
for x in $1; do
@ -2882,6 +2882,18 @@ encodeaddr() {
# Enumerate the members of an IP range
#
ip_range() {
local first
local last
case $1 in
*-*)
;;
*)
echo $1
return
;;
esac
first=`decodeaddr ${1%-*}`
last=`decodeaddr ${1#*-}`