Destroy cloned interfaces at netif stop, netif restart and shutdown.

This is especially important during shutdown because a child interface
of lagg with WOL enabled will not enable WOL at interface shutdown and
thus no WOL to wake up the device (and machine).

PR:		158734, 109980
Reported by:	Antonio Huete Jimenez <tuxillo at quantumachine.net>
		Marat N.Afanasyev <marat at zealot.ksu.ru>
reviewed by:	kp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D26797
This commit is contained in:
Cy Schubert 2020-10-19 20:37:38 +00:00
parent 3001e97deb
commit bd0e0447cb

View File

@ -28,7 +28,7 @@
# PROVIDE: netif
# REQUIRE: FILESYSTEMS iovctl serial sppp sysctl
# REQUIRE: hostid ipfs
# KEYWORD: nojailvnet
# KEYWORD: nojailvnet shutdown
. /etc/rc.subr
. /etc/network.subr