From ceed25dc1c08fbc07365ae02c10fcad73173ad23 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 6 Jul 2003 14:34:46 +0000 Subject: [PATCH] Simplify ip_range slightly git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@645 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/functions b/Shorewall/functions index 6fee0989f..3fc8bc5d0 100755 --- a/Shorewall/functions +++ b/Shorewall/functions @@ -297,13 +297,13 @@ ip_range() { z=1 while [ $(( $first % $y )) -eq 0 -a $(( $first + $y )) -le $l ]; do - vlsm=$x + vlsm=/$x x=$(( $x - 1 )) z=$y y=$(( $y * 2 )) done - [ -n "$vlsm" ] && echo `encodeaddr $first`/$vlsm || echo `encodeaddr $first` + echo `encodeaddr $first`$vlsm first=$(($first + $z)) done }