Fix label creation for IP address ranges

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@606 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-22 21:22:57 +00:00
parent debf41d707
commit b33ffddc7b

View File

@ -2963,8 +2963,14 @@ setup_masq()
if [ -n "$address" -a -n "$ADD_SNAT_ALIASES" ]; then
for addr in `ip_range $address` ; do
list_search $addr $aliases_to_add || \
if ! list_search $addr $aliases_to_add; then
aliases_to_add="$aliases_to_add $addr $fullinterface"
case $fullinterface in
*:*)
fullinterface=${fullinterface%:*}:$((${fullinterface#*:} + 1 ))
;;
esac
fi
done
fi
@ -3207,7 +3213,7 @@ add_ip_aliases()
# decoration on these IP addresses that they see when their
# distro's net config tool adds them. In an attempt to reduce
# the anxiety level, we have the following code which sets
# the VLSM and BRD from the primary address
# the VLSM and BRD from the primary address in the same subnet
#
# Get all of the lines that contain inet addresses with broadcast
#