summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-09-28 19:01:15 +0000
committerdelphij <delphij@FreeBSD.org>2011-09-28 19:01:15 +0000
commitaed7b4b7f1ab199a2398f9fff6718d1e271d6b2e (patch)
tree909d757fecf39152e206f6ebedaad623f37d6def /etc
parent0e483eb670d5325d2b7ffbe6c19442458162196e (diff)
downloadFreeBSD-src-aed7b4b7f1ab199a2398f9fff6718d1e271d6b2e.zip
FreeBSD-src-aed7b4b7f1ab199a2398f9fff6718d1e271d6b2e.tar.gz
Test if the interface is afif in dhcpif() and syncdhcpif(), as
done in ipv6_autoconfif. Reviewed by: hrs (freebsd-rc@) MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r--etc/network.subr8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 579c701..d595b79 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -297,6 +297,10 @@ dhcpif()
local _tmpargs _arg
_tmpargs=`_ifconfig_getargs $1`
+ if noafif $1; then
+ return 1
+ fi
+
for _arg in $_tmpargs; do
case $_arg in
[Dd][Hh][Cc][Pp])
@@ -322,6 +326,10 @@ syncdhcpif()
local _tmpargs _arg
_tmpargs=`_ifconfig_getargs $1`
+ if noafif $1; then
+ return 1
+ fi
+
for _arg in $_tmpargs; do
case $_arg in
[Nn][Oo][Ss][Yy][Nn][Cc][Dd][Hh][Cc][Pp])
OpenPOWER on IntegriCloud