diff options
author | delphij <delphij@FreeBSD.org> | 2013-06-28 22:25:37 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-06-28 22:25:37 +0000 |
commit | 3c207809e56f6d75e9b13731b02775626c3ad628 (patch) | |
tree | 001b6945bb6707896abfe4b445196ff283cb8df7 /etc | |
parent | 836c13641c73319eef10a3a90e025e071f1a5c44 (diff) | |
download | FreeBSD-src-3c207809e56f6d75e9b13731b02775626c3ad628.zip FreeBSD-src-3c207809e56f6d75e9b13731b02775626c3ad628.tar.gz |
Don't attempt to do DHCP on certain interfaces, similar to what's done for
ipv6_autoconfif() in r212577.
MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr index 63c3db3..44894c9 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -318,6 +318,15 @@ dhcpif() local _tmpargs _arg _tmpargs=`_ifconfig_getargs $1` + case $1 in + lo[0-9]*|\ + stf[0-9]*|\ + faith[0-9]*|\ + lp[0-9]*|\ + sl[0-9]*) + return 1 + ;; + esac if noafif $1; then return 1 fi @@ -509,7 +518,7 @@ ipv6_autoconfif() _if=$1 case $_if in - lo0|\ + lo[0-9]*|\ stf[0-9]*|\ faith[0-9]*|\ lp[0-9]*|\ |