Lines Matching refs:prefix
215 local net prefix
218 IFS='/' read net prefix <<< $1
222 if [[ -n $prefix ]]; then
223 if ! (in_between $prefix 0 $bitlen); then
224 err 5 "Invalid prefix: /$prefix"
255 local net prefix
258 IFS='/' read net prefix <<< $1
261 if [[ -z $prefix ]]; then
272 local remain=$[ bitlen-prefix ]
283 min_mask="$(printf '1%.s' $(seq $prefix))$(printf '0%.s' $(seq $remain))"
284 max_mask="$(printf '0%.s' $(seq $prefix))$(printf '1%.s' $(seq $remain))"