network.subr (197526) | network.subr (197697) |
---|---|
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 197526 2009-09-26 18:59:00Z hrs $ | 25# $FreeBSD: head/etc/network.subr 197697 2009-10-02 02:24:25Z hrs $ |
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 --- 317 unchanged lines hidden (view full) --- 351 352 case ${_af} in 353 inet) 354 ${SYSCTL_N} net.inet > /dev/null 2>&1 355 ;; 356 inet6) 357 ${SYSCTL_N} net.inet6 > /dev/null 2>&1 358 ;; | 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 --- 317 unchanged lines hidden (view full) --- 351 352 case ${_af} in 353 inet) 354 ${SYSCTL_N} net.inet > /dev/null 2>&1 355 ;; 356 inet6) 357 ${SYSCTL_N} net.inet6 > /dev/null 2>&1 358 ;; |
359 ipx) 360 ${SYSCTL_N} net.ipx > /dev/null 2>&1 361 ;; 362 atm) 363 if [ -x /sbin/atmconfig ]; then 364 /sbin/atmconfig diag list > /dev/null 2>&1 365 else 366 return 1 367 fi 368 ;; |
|
359 *) 360 err 1 "afexists(): Unsupported address family: $_af" 361 ;; 362 esac 363} 364 365# noafif if 366# Returns 0 if the interface has no af configuration and 1 otherwise. --- 1003 unchanged lines hidden --- | 369 *) 370 err 1 "afexists(): Unsupported address family: $_af" 371 ;; 372 esac 373} 374 375# noafif if 376# Returns 0 if the interface has no af configuration and 1 otherwise. --- 1003 unchanged lines hidden --- |