Lines Matching refs:ifn

35 # ifn_start ifn
41 local ifn cfg
42 ifn="$1"
45 [ -z "$ifn" ] && err 1 "ifn_start called without an interface"
47 ifscript_up ${ifn} && cfg=0
48 ifconfig_up ${ifn} && cfg=0
49 if ! noafif $ifn; then
50 afexists inet && ipv4_up ${ifn} && cfg=0
51 afexists inet6 && ipv6_up ${ifn} && cfg=0
52 afexists ipx && ipx_up ${ifn} && cfg=0
54 childif_create ${ifn} && cfg=0
59 # ifn_stop ifn
65 local ifn cfg
66 ifn="$1"
69 [ -z "$ifn" ] && err 1 "ifn_stop called without an interface"
71 if ! noafif $ifn; then
72 afexists ipx && ipx_down ${ifn} && cfg=0
73 afexists inet6 && ipv6_down ${ifn} && cfg=0
74 afexists inet && ipv4_down ${ifn} && cfg=0
76 ifconfig_down ${ifn} && cfg=0
77 ifscript_down ${ifn} && cfg=0
78 childif_destroy ${ifn} && cfg=0
83 # ifn_vnetup ifn
84 # Move ifn to the specified vnet jail.
92 # ifn_vnetdown ifn
93 # Reclaim ifn from the specified vnet jail.
101 # ifn_vnet0 ifn action
1265 local _list ifn ifopt _iflist _n tmpargs
1270 for ifn in ${cloned_interfaces}; do
1271 # Parse ifn:ifopt.
1272 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1274 ""|$ifn|$ifn\ *|*\ $ifn\ *|*\ $ifn) ;;
1277 case $ifn in
1282 # Skip if ${ifn}a or ${ifn}b already exist.
1283 if ${IFCONFIG_CMD} ${ifn}a > /dev/null 2>&1; then
1285 elif ${IFCONFIG_CMD} ${ifn}b > /dev/null 2>&1; then
1288 ${IFCONFIG_CMD} ${ifn} create \
1289 `get_if_var ${ifn} create_args_IF`
1291 _list="$_list ${ifn}a ${ifn}b"
1295 # Skip if ${ifn} already exists.
1296 if ${IFCONFIG_CMD} $ifn > /dev/null 2>&1; then
1299 ${IFCONFIG_CMD} ${ifn} create \
1300 `get_if_var ${ifn} create_args_IF`
1302 _list="$_list $ifn"
1309 for ifn in ${gif_interfaces}; do
1310 # Parse ifn:ifopt.
1311 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1313 ""|$ifn|$ifn\ *|*\ $ifn\ *|*\ $ifn) ;;
1316 # Skip if ifn already exists.
1317 if ${IFCONFIG_CMD} $ifn > /dev/null 2>&1; then
1320 case $ifn in
1322 ${IFCONFIG_CMD} $ifn create
1326 ${IFCONFIG_CMD} $_n name $ifn
1330 _list="$_list $ifn"
1332 tmpargs=$(get_if_var $ifn gifconfig_IF)
1333 eval ifconfig_${ifn}=\"tunnel \$tmpargs\"
1347 local _list ifn _difn ifopt _iflist _sticky
1357 for ifn in ${cloned_interfaces} ${gif_interfaces}; do
1358 # Parse ifn:ifopt.
1359 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1366 ""|$ifn|$ifn\ *|*\ $ifn\ *|*\ $ifn) ;;
1369 case $ifn in
1374 # Skip if both of ${ifn}a and ${ifn}b do not exist.
1375 if ${IFCONFIG_CMD} ${ifn}a > /dev/null 2>&1; then
1376 _difn=${ifn}a
1377 elif ${IFCONFIG_CMD} ${ifn}b > /dev/null 2>&1; then
1378 _difn=${ifn}b
1384 _list="$_list ${ifn}a ${ifn}b"
1388 # Skip if ifn does not exist.
1389 if ! ${IFCONFIG_CMD} $ifn > /dev/null 2>&1; then
1392 ${IFCONFIG_CMD} -n ${ifn} destroy
1394 _list="$_list $ifn"
1411 local cfg child child_vlans child_wlans create_args debug_flags ifn i
1413 ifn=$1
1416 child_wlans=`get_if_var $ifn wlans_IF`
1419 create_args="wlandev $ifn `get_if_var $child create_args_IF`"
1440 child_vlans=`get_if_var $ifn vlans_IF`
1448 child="${ifn}.${child}"
1452 create_args="vlandev $ifn `get_if_var $child create_args_IF`"
1473 local cfg child child_vlans child_wlans ifn
1476 child_wlans=`get_if_var $ifn wlans_IF`
1484 child_vlans=`get_if_var $ifn vlans_IF`
1487 child="${ifn}.${child}"
1525 # ng_fec_create ifn
1526 # Configure Fast EtherChannel for interface $ifn. Returns 0 if
1573 # ipx_up ifn
1574 # Configure any IPX addresses for interface $ifn. Returns 0 if
1579 local ifn
1580 ifn="$1"
1583 ifconfig_args=`_ifconfig_getargs $ifn ipx`
1585 ${IFCONFIG_CMD} ${ifn} ${ifconfig_args}
1592 # ipx_down ifn
1593 # Remove IPX addresses for interface $ifn. Returns 0 if IPX