Lines Matching refs:host_id
361 local counter host_id net_id max_host_id max_net_id tmp type
381 host_id=$((tmp % max_host_id))
384 if [ $host_id -eq 0 ]; then
385 host_id=$max_host_id
390 host_id="${2:-0}"
393 host_id=$(printf %d $host_id)
396 [ $host_id -lt 0 ] && host_id=1
400 host_id=$((host_id % max_net_id))
403 echo "${IPV4_NET16_UNUSED}.${net_id}.${host_id}"
407 [ $host_id -gt 0 ] && host_id="$(printf %x $host_id)" || host_id=
410 echo "${IPV6_NET32_UNUSED}${net_id}::${host_id}"