Test if the interface is afif in dhcpif() and syncdhcpif(), as

done in ipv6_autoconfif.

Reviewed by:	hrs (freebsd-rc@)
MFC after:	1 week
This commit is contained in:
Xin LI 2011-09-28 19:01:15 +00:00
parent 576d2da4ac
commit 89b1da1ba2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225849

View File

@ -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])