Lines Matching refs:max_net_id
393 local max_net_id=$default_max
413 max_net_id="$(echo $OPTARG | cut -d, -f2)"
419 ! tst_is_int "$OPTARG" || [ "$OPTARG" -lt 0 ]|| [ "$OPTARG" -gt $max_net_id ] && \
420 tst_brk TBROK "tst_ipaddr_un: -m must be integer <0,$max_net_id> ($OPTARG)"
421 [ "$OPTARG" -gt $max_net_id ] && \
422 tst_brk_ TBROK "tst_ipaddr_un: -m cannot be higher than $max_net_id ($OPTARG)"
442 ! tst_is_int "$min_net_id" || ! tst_is_int "$max_net_id" || \
444 [ $max_net_id -lt 0 -o $max_net_id -gt $default_max ] && \
445 …t_brk TBROK "tst_ipaddr_un: NET_ID must be int in range <0,$default_max> ($min_net_id,$max_net_id)"
449 [ $min_net_id -gt $max_net_id ] && \
450 tst_brk TBROK "tst_ipaddr_un: max NET_ID ($max_net_id) must be >= min NET_ID ($min_net_id)"
472 net_id=$((net_id % (max_net_id - min_net_id + 1) + min_net_id))