Lines Matching +full:no +full:- +full:ether +full:- +full:link
16 # ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
44 [ -z "$ifn" ] && err 1 "ifn_start called without an interface"
58 # Shutdown and de-configure an interface. If action is taken,
67 [ -z "$ifn" ] && err 1 "ifn_stop called without an interface"
95 ifn_vnet0 $1 -vnet
119 # had no arguments. Pseudo arguments DHCP and WPA are handled
135 _ipv6_opts="-ifdisabled"
142 bridge[0-9]*)
143 # No accept_rtadv by default on if_bridge(4)
158 _ipv6_opts="${_ipv6_opts} -no_radr accept_rtadv"
162 if [ -n "${_ipv6_opts}" ]; then
169 if [ -n "${ifconfig_args}" ]; then
178 if [ -n "${ifconfig_args}" ]; then
181 :*|[0-9a-fA-F]*:*)
187 ${IFCONFIG_CMD} $1 inet6 -ifdisabled
195 if [ -n "${ifconfig_args}" ]; then
196 ${IFCONFIG_CMD} $1 inet6 -ifdisabled
202 if [ -n "${ifconfig_args}" ]; then
205 ${IFCONFIG_CMD} $1 inet6 -ifdisabled
211 ifalias $1 link alias
212 ifalias $1 ether alias
215 if [ -n "${_ifconfig_descr}" ]; then
225 elif [ ${_cfg} -eq 0 ]; then
234 if [ $_cfg -ne 0 ] ; then
275 # Return the value of the pseudo-hash corresponding to $if where
276 # $var is a string containg the sub-string "IF" which will be
284 if [ $# -ne 2 -a $# -ne 3 ]; then
289 _punct=".-/+"
296 eval echo \${${prefix}${_if}${suffix}-${_default}}
309 if [ -z "$_ifn" ]; then
323 if [ $? -eq 1 ]; then
375 lo[0-9]*|\
376 stf[0-9]*|\
377 lp[0-9]*|\
378 sl[0-9]*)
496 link|ether)
506 # Returns 0 if the interface has no af configuration and 1 otherwise.
513 pflog[0-9]*|\
514 pfsync[0-9]*|\
515 usbus[0-9]*|\
516 an[0-9]*|\
517 ath[0-9]*|\
518 ipw[0-9]*|\
519 ipfw[0-9]*|\
520 iwi[0-9]*|\
521 iwn[0-9]*|\
522 ral[0-9]*|\
523 wi[0-9]*|\
524 wl[0-9]*|\
525 wpi[0-9]*)
545 # lo0 is always IPv6-enabled
556 if [ -n "${_tmpargs}" ]; then
562 if [ -n "${_tmpargs}" ]; then
568 if [ -n "${_tmpargs}" ]; then
586 lo[0-9]*|\
587 stf[0-9]*|\
588 lp[0-9]*|\
589 sl[0-9]*)
603 if [ -n "${_tmpargs}" ]; then
613 bridge[0-9]*)
614 # No accept_rtadv by default on if_bridge(4)
652 [ -z "$1" ] && return 1
653 ${IFCONFIG_CMD} -n $1 > /dev/null 2>&1
667 if [ -z "${ifconfig_args}" ]; then
703 ifalias ${_if} inet -alias && _ret=0
716 _inet=`expr "$_inet" : '.*\(inet \([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\).*'`
742 ipv6_prefix_hostid_addr_common ${_if} -alias && _ret=0
743 ifalias ${_if} inet6 -alias && _ret=0
756 _inet6=`expr "$_inet6" : '.*\(inet6 \([0-9a-f:]*\)\).*'`
759 ${IFCONFIG_CMD} ${_if} ${_inet6} -alias
781 inet|inet6|link|ether)
790 # Expand address range ("N-M") specification in addr.
791 # "addr" must not include an address-family keyword.
792 # The results will include an address-family keyword.
821 *:*--*) return ;; # invalid
822 tmp:*[0-9]-[0-9]*:*) # to be expanded
825 *:*[0-9]-[0-9]*:*) # to be expanded
828 echo ${_arg%/[0-9]*} $_exargs && return
834 echo inet ${_arg%/[0-9]*} $_exargs && return
850 IFS=. set -- $_ipaddr
856 :[0-9]*-[0-9]*)
868 _iplow=${_range%-*}
869 _iphigh=${_range#*-}
872 if [ "$_action" = "-alias" ]; then
877 while [ "$_ipcount" -le "$_iphigh" ]; do
879 if [ $_ipcount -gt $(($_iplow + $netif_ipexpand_max)) ]; then
880 warn "Range specification is too large (${_iphead}${_iphead:+.}${_iplow}${_iptail:+.}${_iptail}-${_iphead}${_iphead:+.}${_iphigh}${_iptail:+.}${_iptail}). ${_iphead}${_iphead:+.}${_iplow}${_iptail:+.}${_iptail}-${_iphead}${_iphead:+.}${_ipcount}${_iptail:+.}${_iptail} was processed. Increase \$netif_ipexpand_max in rc.conf."
911 *:*--*:*) return ;; # invalid
912 tmp:*[0-9a-zA-Z]-[0-9a-zA-Z]*:*)# to be expanded
915 *:*[0-9a-zA-Z]-[0-9a-zA-Z]*:*) # to be expanded
918 echo ${_arg%/[0-9]*} $_exargs && return
924 echo inet6 ${_arg%/[0-9]*} $_exargs && return
936 -alias:*:*) unset _plen ;;
947 _ipleft=${_ipaddr%-*}
948 _ipright=${_ipaddr#*-}
960 if [ -n "$_iplow" -a -n "$_iphigh" ]; then
964 while [ $_ipcount -le $_iphigh ]; do
969 if [ $_ipcount -gt $(($_iplow + $netif_ipexpand_max)) ]
971 warn "Range specification is too large $(printf '(%s:%x%s-%s:%x%s)' "$_ipleft" "$_iplow" "$_ipright" "$_ipleft" "$_iphigh" "$_ipright"). $(printf '%s:%x%s-%s:%x%s' "$_ipleft" "$_iplow" "$_ipright" "$_ipleft" "$_ipcount" "$_ipright") was processed. Increase \$netif_ipexpand_max in rc.conf."
992 *) _plen=$(($_plen - 96)) ;;
1023 # link(ether) does not support address removal.
1025 link:-alias|ether:-alias) return ;;
1033 ${_af}[[:space:]]*[0-9a-fA-F]-*)
1049 if [ -n "${_tmpargs}" ]; then
1054 ${_af}[[:space:]]*[0-9a-fA-F]-*)
1073 local _vif _punct=".-/+"
1085 for alias in `list_vars ifconfig_${_vif}_alias[0-9]\* |
1086 sort_lite -nk1.$((9+${#_vif}+7))`
1093 link[[:space:]]*) _iaf=link ;;
1094 ether[[:space:]]*) _iaf=ether ;;
1114 for alias in `list_vars ipv6_ifconfig_${_vif}_alias[0-9]\* |
1115 sort_lite -nk1.$((14+${#_vif}+7))`
1140 inet|inet6|link|ether)
1172 if [ -n "${prefix}" ]; then
1204 if [ -x /sbin/rtsol ]; then
1217 ${IFCONFIG_CMD} $1 inet6 -accept_rtadv
1224 # 1 if no script was found.
1228 if [ -r /etc/start_if.$1 ]; then
1239 # 1 if no script was found.
1243 if [ -r /etc/stop_if.$1 ]; then
1261 for parent in `set | sed -nE 's/wlans_([a-z]+[a-z0-9]+[0-9]+)=.*/\1/p'`; do
1274 if expr $child : 'wlan[0-9][0-9]*$' >/dev/null 2>&1; then
1279 if [ $? -eq 0 ]; then
1282 if [ -n "${debug_flags}" ]; then
1283 wlandebug -i $child ${debug_flags}
1287 if [ -n "${_list# }" ]; then
1303 for parent in `set | sed -nE 's/wlans_([a-z]+[a-z0-9]+[0-9]+)=.*/\1/p'`; do
1314 ${IFCONFIG_CMD} -n ${child} destroy
1315 if [ $? -eq 0 ]; then
1320 if [ -n "${_list# }" ]; then
1338 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1344 epair[0-9]*)
1345 # epair(4) uses epair[0-9] for creation and
1346 # epair[0-9][ab] for configuration.
1356 if [ $? -eq 0 ]; then
1367 if [ $? -eq 0 ]; then
1374 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1384 gif[0-9]*)
1392 if [ $? -eq 0 ]; then
1410 if [ -n "${_list# }" ]; then
1426 : ${cloned_interfaces_sticky:=NO}
1434 OIFS=$IFS; IFS=:; set -- $ifn; ifn=$1; ifopt=$2; IFS=$OIFS
1445 epair[0-9]*)
1446 # Note: epair(4) uses epair[0-9] for removal and
1447 # epair[0-9][ab] for configuration.
1457 ${IFCONFIG_CMD} -n $_difn destroy
1458 if [ $? -eq 0 ]; then
1467 ${IFCONFIG_CMD} -n ${ifn} destroy
1468 if [ $? -eq 0 ]; then
1474 if [ -n "${_list# }" ]; then
1493 if [ -n "${child_vlans}" ]; then
1498 if expr $child : '[1-9][0-9]*$' >/dev/null 2>&1; then
1504 if expr $child : 'vlan[0-9][0-9]*$' >/dev/null 2>&1; then
1529 if expr $child : '[1-9][0-9]*$' >/dev/null 2>&1; then
1535 ${IFCONFIG_CMD} -n $child destroy && cfg=0
1546 ngctl -f - 2> /dev/null <<EOF
1560 t=`expr "${line}" : '.* name="\([a-z]*[0-9]*\)" .*'`
1561 if [ -n "${t}" ]; then
1576 for _if in ${*:-$(${IFCONFIG_CMD} -l)}; do
1578 if [ ! -z "$_ifname" ]; then
1590 # nodhcp - all interfaces, excluding DHCP configured interfaces
1591 # dhcp - list only DHCP configured interfaces
1592 # noautoconf - all interfaces, excluding IPv6 Stateless
1594 # autoconf - list only IPv6 Stateless Address Autoconf
1596 # If no argument is specified all network interfaces are output.
1611 _autolist="`${IFCONFIG_CMD} -l`"
1626 # epair(4) uses epair[0-9] for creation and
1627 # epair[0-9][ab] for configuration.
1629 epair[0-9]*)
1638 # lo0 is effectively mandatory, so help prevent foot-shooting
1657 [ -n "`_ifconfig_getargs $_if`" ]; then
1672 [ -n "`_ifconfig_getargs $_if ipv6`" ]; then
1694 # get_default_if -address_family
1696 # The -address_family argument must be suitable passing to route(8).
1705 for line in `route -n get $1 default 2>/dev/null`; do
1743 # Echo link-local address from $if if any.