Lines Matching refs:bridge
51 # # arguments given to `jng bridge xxx' in exec.prestart value.
62 # # NB: The number of arguments after `jng bridge xxx' should match
65 # exec.prestart += "jng bridge xxx em0 em1 ...";
106 # jail_xxx_exec_prestart0="jng bridge xxx em0 em1 ..." # bridge interface(s)
152 bridge \
264 jng_bridge_usage="bridge [-b BRIDGE_NAME] NAME [!|=]iface0 [[!|=]iface1 ...]"
268 local OPTIND=1 OPTARG flag bridge=bridge
271 b) bridge="$OPTARG"
272 [ "$bridge" ] || action_usage bridge ;; # NOTREACHED
273 *) action_usage bridge # NOTREACHED
280 action_usage bridge # NOTREACHED
311 if ! ngctl info ${iface}bridge: > /dev/null 2>&1; then
312 ngctl mkpeer $iface: bridge lower link0 || return
315 ngctl name $iface:lower ${iface}bridge || return
318 # Optionally create a secondary bridge
319 if [ "$bridge" != "bridge" ] &&
320 ! ngctl info "$iface$bridge:" > /dev/null 2>&1
323 while ngctl msg ${iface}bridge: getstats $num \
328 ngctl mkpeer $iface:lower bridge link$num link1 ||
330 ngctl name ${iface}bridge:link$num "$iface$bridge" ||
334 # Create a new interface to the bridge
336 while ngctl msg "$iface$bridge:" getstats $num > /dev/null 2>&1
340 ngctl mkpeer "$iface$bridge:" eiface link$num ether || return
346 new=$( set -- `ngctl show -n "$iface$bridge:link$num"` &&
348 ngctl name "$iface$bridge:link$num" $eiface || return
419 ngctl ls | awk '$4=="bridge",$0=$2' |
420 xargs -rn1 -Ibridge ngctl show bridge: |
468 $3 == "bridge" && $5 ~ /^link/ {
469 bridge = $2
472 bridge, link))