Lines Matching refs:iface
189 eval __mac_num=\${_${iface}_num:--1}
191 eval _${iface}_num=\$__mac_num
284 local iface parent eiface eiface_devid
286 for iface in $*; do
290 case "$iface" in
291 =*) iface=${iface#=} clone_mac=1 ;;
292 !*) iface=${iface#!} no_derive=1 ;;
303 ifconfig $iface up || return
306 ngctl msg $iface: setpromisc 1 || return
307 ngctl msg $iface: setautosrc 0 || return
310 if ! ngctl info ${iface}bridge: > /dev/null 2>&1; then
311 ngctl mkpeer $iface: bridge lower link0 || return
312 ngctl connect $iface: $iface:lower upper link1 ||
314 ngctl name $iface:lower ${iface}bridge || return
317 mtu=$(ifconfig ${iface} | sed -n '1s/^.*mtu //p;') || return
321 ! ngctl info "$iface$bridge:" > /dev/null 2>&1
324 while ngctl msg ${iface}bridge: getstats $num \
329 ngctl mkpeer $iface:lower bridge link$num link1 ||
331 ngctl name ${iface}bridge:link$num "$iface$bridge" ||
337 while ngctl msg "$iface$bridge:" getstats $num > /dev/null 2>&1
341 ngctl mkpeer "$iface$bridge:" eiface link$num ether || return
347 new=$( set -- `ngctl show -n "$iface$bridge:link$num"` &&
349 ngctl name "$iface$bridge:link$num" $eiface || return
360 eiface_devid=$( ifconfig $iface ether |
363 derive_mac $iface "$name" eiface_devid