network.subr (201216) | network.subr (203433) |
---|---|
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 201216 2009-12-29 21:06:49Z jhb $ | 25# $FreeBSD: head/etc/network.subr 203433 2010-02-03 16:18:42Z ume $ |
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 --- 843 unchanged lines hidden (view full) --- 877 878# ipv6_accept_rtadv_up if 879# Enable accepting Router Advertisement and send Router 880# Solicitation message 881ipv6_accept_rtadv_up() 882{ 883 if ipv6_autoconfif $1; then 884 ifconfig $1 inet6 accept_rtadv up | 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 --- 843 unchanged lines hidden (view full) --- 877 878# ipv6_accept_rtadv_up if 879# Enable accepting Router Advertisement and send Router 880# Solicitation message 881ipv6_accept_rtadv_up() 882{ 883 if ipv6_autoconfif $1; then 884 ifconfig $1 inet6 accept_rtadv up |
885 rtsol ${rtsol_flags} $1 | 885 if ! checkyesno rtsold_enable; then 886 rtsol ${rtsol_flags} $1 887 fi |
886 fi 887} 888 889# ipv6_accept_rtadv_down if 890# Disable accepting Router Advertisement 891ipv6_accept_rtadv_down() 892{ 893 if ipv6_autoconfif $1; then --- 532 unchanged lines hidden --- | 888 fi 889} 890 891# ipv6_accept_rtadv_down if 892# Disable accepting Router Advertisement 893ipv6_accept_rtadv_down() 894{ 895 if ipv6_autoconfif $1; then --- 532 unchanged lines hidden --- |