Lines Matching refs:prefix
216 local net prefix
219 IFS='/' read net prefix <<< $1
223 if [[ -n $prefix ]]; then
224 if ! (in_between $prefix 0 $bitlen); then
225 err 5 "Invalid prefix: /$prefix"
256 local net prefix
259 IFS='/' read net prefix <<< $1
262 if [[ -z $prefix ]]; then
273 local remain=$[ bitlen-prefix ]
284 min_mask="$(printf '1%.s' $(seq $prefix))$(printf '0%.s' $(seq $remain))"
285 max_mask="$(printf '0%.s' $(seq $prefix))$(printf '1%.s' $(seq $remain))"