Lines Matching +full:num +full:- +full:ss +full:- +full:bits

2 #-
48 # # NB: Below 2-lines required
60 # # NB: Below 2-lines required
130 # handle most setups, minus some which considered exotic or purpose-built.
181 n) __mac_num=${OPTARG%%[^0-9]*} ;;
184 shift $(( $OPTIND - 1 ))
187 eval __mac_num=\${_${iface}_num:--1}
197 # The formula I'm using is ``NP:SS:SS:II:II:II'' where:
198 # + N denotes 4 bits used as a counter to support branching
204 # + S denotes 16 bits, the sum(1) value of the jail name.
205 # + I denotes bits that are inherited from parent interface.
207 # The S bits are a CRC-16 checksum of NAME, allowing the jail
220 # => :SS:SS:II:II:II
221 __num=$( set -- `echo -n "$__name" | sum` && echo $1 )
224 # => P:SS:SS:II:II:II
230 # => NP:SS:SS:II:II:II
238 if [ "$__var_to_set" -a "$__var_to_set_b" ]; then
255 if [ "$( id -u )" -ne 0 ]; then
261 jib_addm_usage="addm [-b BRIDGE_NAME] NAME [!]iface0 [[!]iface1 ...]"
268 b) bridge="${OPTARG:-bridge}" ;;
272 shift $(( $OPTIND - 1 ))
275 [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -gt 1 ] ||
282 local new no_derive num quad i=0
322 [ "$no_derive" ] || derive_mac -2 $iface "$name" \
324 if [ "$eiface_devid_a" -a "$eiface_devid_b" ]; then
346 shift $(( $OPTIND - 1 ))
347 if [ $# -eq 0 ]; then
355 for (n = split($0, group); n > 1; n--) {
361 xargs -rn1 ifconfig |
364 sort -u
367 ifconfig | awk -v name="$1" '
383 shift $(( $OPTIND -1 ))
385 [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -eq 1 ] ||
388 jib_show "$name" | xargs -rn1 -I eiface ifconfig eiface destroy
394 # Command-line arguments
403 type="$( type -t "jib_$action" )" || usage # NOTREACHED