network.subr (228472) | network.subr (229783) |
---|---|
1# 2# Copyright (c) 2003 The FreeBSD Project. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23# SUCH DAMAGE. 24# | 1# 2# Copyright (c) 2003 The FreeBSD Project. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23# SUCH DAMAGE. 24# |
25# $FreeBSD: head/etc/network.subr 228472 2011-12-13 14:36:04Z glebius $ | 25# $FreeBSD: head/etc/network.subr 229783 2012-01-07 16:10:32Z uqs $ |
26# 27 28# 29# Subroutines commonly used from network startup scripts. 30# Requires that rc.conf be loaded first. 31# 32 33# ifn_start ifn --- 100 unchanged lines hidden (view full) --- 134 ifconfig_args="inet6 ${ifconfig_args}" 135 ;; 136 esac 137 ifconfig $1 inet6 -ifdisabled 138 eval ifconfig $1 ${ifconfig_args} 139 _cfg=0 140 fi 141 | 26# 27 28# 29# Subroutines commonly used from network startup scripts. 30# Requires that rc.conf be loaded first. 31# 32 33# ifn_start ifn --- 100 unchanged lines hidden (view full) --- 134 ifconfig_args="inet6 ${ifconfig_args}" 135 ;; 136 esac 137 ifconfig $1 inet6 -ifdisabled 138 eval ifconfig $1 ${ifconfig_args} 139 _cfg=0 140 fi 141 |
142 # backward compatiblity: $ipv6_ifconfig_IF | 142 # backward compatibility: $ipv6_ifconfig_IF |
143 ifconfig_args=`get_if_var $1 ipv6_ifconfig_IF` 144 if [ -n "${ifconfig_args}" ]; then 145 warn "\$ipv6_ifconfig_$1 is obsolete." \ 146 " Use ifconfig_$1_ipv6 instead." 147 ifconfig $1 inet6 -ifdisabled 148 eval ifconfig $1 inet6 ${ifconfig_args} 149 _cfg=0 150 fi --- 1268 unchanged lines hidden --- | 143 ifconfig_args=`get_if_var $1 ipv6_ifconfig_IF` 144 if [ -n "${ifconfig_args}" ]; then 145 warn "\$ipv6_ifconfig_$1 is obsolete." \ 146 " Use ifconfig_$1_ipv6 instead." 147 ifconfig $1 inet6 -ifdisabled 148 eval ifconfig $1 inet6 ${ifconfig_args} 149 _cfg=0 150 fi --- 1268 unchanged lines hidden --- |