Index: etc/network.subr =================================================================== --- etc/network.subr +++ etc/network.subr @@ -26,9 +26,6 @@ # IFCONFIG_CMD="/sbin/ifconfig" -# Maximum number of addresses expanded from a address range specification. -_IPEXPANDMAX=31 - # # Subroutines commonly used from network startup scripts. # Requires that rc.conf be loaded first. @@ -886,12 +883,7 @@ _ipcount=$_iplow while [ "$_ipcount" -le "$_iphigh" ]; do _retstr="${_retstr} ${_iphead}${_iphead:+.}${_ipcount}${_iptail:+.}${_iptail}${_plen:+/}${_plen}" - if [ $_ipcount -gt $(($_iplow + $_IPEXPANDMAX)) ]; then - warn "Range specification is too large (${_iphead}${_iphead:+.}${_iplow}${_iptail:+.}${_iptail}-${_iphead}${_iphead:+.}${_iphigh}${_iptail:+.}${_iptail}). ${_iphead}${_iphead:+.}${_iplow}${_iptail:+.}${_iptail}-${_iphead}${_iphead:+.}${_ipcount}${_iptail:+.}${_iptail} was processed." - break - else - _ipcount=$(($_ipcount + 1)) - fi + _ipcount=$(($_ipcount + 1)) # Forcibly set /32 for remaining aliases. _plen=32 done @@ -976,13 +968,7 @@ $_ipleft $_ipcount $_ipright \ ${_plen:+/}$_plen` _retstr="$_retstr $_r" - if [ $_ipcount -gt $(($_iplow + $_IPEXPANDMAX)) ] - then - warn "Range specification is too large $(printf '(%s:%04x%s-%s:%04x%s)' $_ipleft $_iplow $_ipright $_ipleft $_iphigh $_ipright). $(printf '%s:%04x%s-%s:%04x%s' $_ipleft $_iplow $_ipright $_ipleft $_ipcount $_ipright) was processed." - break - else - _ipcount=$(($_ipcount + 1)) - fi + _ipcount=$(($_ipcount + 1)) done else _retstr="${_ipaddr}${_plen:+/}${_plen}"