mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 16:18:54 -04:00
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:
parent
576d2da4ac
commit
89b1da1ba2
1 changed files with 8 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue